Skip to content

Commit

Permalink
DN-2: Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jun 24, 2024
1 parent 2b433e2 commit 0cf1315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions client/src/app/dictionaries/biology/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import { Metadata } from 'next';

const dictionary: string = 'biology';
const relDir: string = path.join('dictionaries', dictionary, 'definitions');
const absDir: string = path.join(
ROOT_DIR_APP, relDir
);
const absDir: string = path.join(ROOT_DIR_APP, relDir);

export async function generateStaticParams(): Promise<{ slug: string }[]> {
const filenames: string[] = fs.readdirSync(absDir).filter((filename) => {
Expand Down
4 changes: 1 addition & 3 deletions client/src/app/dictionaries/chemistry/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import { Metadata } from 'next';

const dictionary: string = 'chemistry';
const relDir: string = path.join('dictionaries', dictionary, 'definitions');
const absDir: string = path.join(
ROOT_DIR_APP, relDir
);
const absDir: string = path.join(ROOT_DIR_APP, relDir);

export async function generateStaticParams(): Promise<{ slug: string }[]> {
const filenames: string[] = fs.readdirSync(absDir).filter((filename) => {
Expand Down

0 comments on commit 0cf1315

Please sign in to comment.