remove turbopack option and fix type issues
This commit is contained in:
@@ -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