Fix some issues

This commit is contained in:
Michael
2021-10-22 20:14:36 +02:00
parent 397fce4b73
commit 3183efa90e
8 changed files with 22 additions and 26 deletions

View File

@@ -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}

View File

@@ -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');
}
}
>

View File

@@ -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('/');
}
});
};