-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from websitesieutoc/make-post-crud
Make Posts crud
- Loading branch information
Showing
21 changed files
with
699 additions
and
206 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
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
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,16 +1,21 @@ | ||
import { Heading, Stack } from '@/components/chakra'; | ||
import SignUpForm from './SignUpForm'; | ||
import { getSession } from '@/utils/auth'; | ||
import { redirect } from 'next/navigation'; | ||
|
||
export default async function SignUp() { | ||
const session = await getSession(); | ||
|
||
if (session) { | ||
redirect('/'); | ||
} | ||
|
||
return ( | ||
<Stack gap={4} maxWidth="sm" marginX="auto" paddingTop="10vh"> | ||
<Stack spacing={8} maxWidth="sm" marginX="auto" paddingTop="10vh"> | ||
<Heading as="h1" size="lg"> | ||
Sign Up | ||
</Heading> | ||
<SignUpForm session={session} /> | ||
<SignUpForm /> | ||
</Stack> | ||
); | ||
} |
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
Oops, something went wrong.