Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
v1xingyue committed Jan 14, 2025
1 parent 2c15ba4 commit 5c596f5
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"react-markdown": "^9.0.3",
"react-router-dom": "^6.22.0",
"react-syntax-highlighter": "^15.6.1",
"rehype-autolink-headings": "^7.1.0",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"tailwindcss": "^3.4.1"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/page/src/hooks/useModule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Module } from '../types/module';
import { modules } from '../data/modules';
import { Module } from "../types/module";
import { modules } from "../data/modules";

export function useModule(id: string | undefined): Module | undefined {
if (!id) return undefined;
return modules.find(module => module.id === id);
}
return modules.find((module) => module.id === id);
}
55 changes: 55 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c596f5

Please sign in to comment.