-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { EditorScreen } from '@/screen/EditorScreen'; | ||
|
||
export default function () { | ||
return <EditorScreen enableEdit />; | ||
type PageProps = { | ||
params: { | ||
documentName: string; | ||
}; | ||
}; | ||
|
||
export default function (props: PageProps) { | ||
return <EditorScreen documentName={props.params.documentName} enableEdit />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { redirect } from 'next/navigation'; | ||
|
||
type RedirectProps = { | ||
type PageProps = { | ||
params: { | ||
documentName: string; | ||
}; | ||
}; | ||
|
||
export default function (props: RedirectProps) { | ||
export default function (props: PageProps) { | ||
// TODO: Expose Backend API route location | ||
return redirect(`/api/document/${props.params.documentName}/raw`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters