remove turbopack option and fix type issues
This commit is contained in:
1 parent
f477ba21ea
commit
2ea4bab316
3 files changed
+8
-8
No files matched your search
@@ -46,8 +46,8 @@ function Markdown({ content }: any) {
|
||||
</ReactMarkdown>
|
||||
}
|
||||
|
||||
export default async function Note({params}: {params: { note: string}}) {
|
||||
const note = params.note
|
||||
export default async function Note({params}: {params: Promise<{note: string}>}) {
|
||||
const note = (await params).note
|
||||
const n = await getNotes(note)
|
||||
return (<>
|
||||
<span className={style['last-updated']}>
|
||||
@@ -63,4 +63,4 @@ export default async function Note({params}: {params: { note: string}}) {
|
||||
async function getNotes(name: string) {
|
||||
const notesInfo: Notes = NotesInfo;
|
||||
return {...notesInfo[name], content: await readMarkdown('notes', name, true)}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user