mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 09:17:54 +00:00
Fix some issues
This commit is contained in:
@@ -20,7 +20,7 @@ const CardsLanding = (): JSX.Element => (
|
||||
<CardLanding
|
||||
image={cardPage}
|
||||
text="7 pages fully designed and easily customizable"
|
||||
title='"Templates"'
|
||||
title="Templates"
|
||||
/>
|
||||
<CardLanding
|
||||
image={cardServer}
|
||||
|
||||
@@ -180,7 +180,7 @@ const Pricing = (): JSX.Element => {
|
||||
yearly ? Prices.personal.annually.id : Prices.personal.monthly.id
|
||||
)
|
||||
: () => {
|
||||
router.push('/auth');
|
||||
router.push('/signup');
|
||||
}
|
||||
}
|
||||
>
|
||||
@@ -224,7 +224,7 @@ const Pricing = (): JSX.Element => {
|
||||
: (e) =>
|
||||
handleSubmit(e, yearly ? Prices.team.annually.id : Prices.team.monthly.id)
|
||||
: () => {
|
||||
router.push('/auth');
|
||||
router.push('/signup');
|
||||
}
|
||||
}
|
||||
>
|
||||
@@ -268,7 +268,7 @@ const Pricing = (): JSX.Element => {
|
||||
: (e) =>
|
||||
handleSubmit(e, yearly ? Prices.pro.annually.id : Prices.pro.monthly.id)
|
||||
: () => {
|
||||
router.push('/auth');
|
||||
router.push('/signup');
|
||||
}
|
||||
}
|
||||
>
|
||||
|
||||
@@ -20,11 +20,14 @@ const SignUpPanel = ({ signIn, signUp }: SignUpPanelProps): JSX.Element => {
|
||||
email,
|
||||
password,
|
||||
}).then((result) => {
|
||||
if (result.data) {
|
||||
router.push('/');
|
||||
}
|
||||
console.log(result);
|
||||
if (result.error) {
|
||||
toast.error(result.error.message);
|
||||
} else if (result.data?.confirmation_sent_at) {
|
||||
console.log(result.data.confirmation_sent_at);
|
||||
toast.success('A confirmation email has been sent to you, watch your mailbox!');
|
||||
} else if (result.data) {
|
||||
router.push('/');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user