File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed
(main)/(routes)/documents
(public)/(routes)/preview/[documentId] Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type Props = {
15
15
} ;
16
16
} ;
17
17
18
- const Page = ( { params : { documentId } } : Props ) => {
18
+ export default function Document ( { params : { documentId } } : Props ) {
19
19
const Editor = useMemo (
20
20
( ) =>
21
21
dynamic ( ( ) => import ( "@/components/shared/Editor" ) , {
@@ -65,6 +65,4 @@ const Page = ({ params: { documentId } }: Props) => {
65
65
</ div >
66
66
</ div >
67
67
) ;
68
- } ;
69
-
70
- export default Page ;
68
+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { api } from "@/convex/_generated/api";
10
10
import { toast } from "sonner" ;
11
11
import { useRouter } from "next/navigation" ;
12
12
13
- const Page = ( ) => {
13
+ export default function Documents ( ) {
14
14
const router = useRouter ( ) ;
15
15
const { user } = useUser ( ) ;
16
16
const create = useMutation ( api . documents . create ) ;
@@ -51,6 +51,4 @@ const Page = () => {
51
51
</ Button >
52
52
</ div >
53
53
) ;
54
- } ;
55
-
56
- export default Page ;
54
+ }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Footer } from "./_components/Footer";
2
2
import { Heading } from "./_components/Heading" ;
3
3
import { Heroes } from "./_components/Heroes" ;
4
4
5
- export default function Home ( ) {
5
+ export default function Marketing ( ) {
6
6
return (
7
7
< div className = "flex min-h-full flex-col dark:bg-[#1F1F1F]" >
8
8
< div className = "flex flex-1 flex-col items-center justify-center gap-y-8 px-6 pb-10 text-center md:justify-start" >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type Props = {
15
15
} ;
16
16
} ;
17
17
18
- const Page = ( { params : { documentId } } : Props ) => {
18
+ export default function Preview ( { params : { documentId } } : Props ) {
19
19
const Editor = useMemo (
20
20
( ) =>
21
21
dynamic ( ( ) => import ( "@/components/shared/Editor" ) , {
@@ -69,6 +69,4 @@ const Page = ({ params: { documentId } }: Props) => {
69
69
</ div >
70
70
</ div >
71
71
) ;
72
- } ;
73
-
74
- export default Page ;
72
+ }
You can’t perform that action at this time.
0 commit comments