From 0472b55cf9f1c22f37e2fc0f6aa6721ac076e124 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sun, 5 Nov 2023 15:02:20 +0700 Subject: [PATCH] feat: claim location --- .../pages/claim-success/hero/hero.jsx | 13 ++++++++- src/components/pages/claim/hero/form.jsx | 27 ++++++++++++++++--- src/components/pages/claim/hero/hero.jsx | 3 +-- 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/src/components/pages/claim-success/hero/hero.jsx b/src/components/pages/claim-success/hero/hero.jsx index 4b73f8e4..7a45aff0 100644 --- a/src/components/pages/claim-success/hero/hero.jsx +++ b/src/components/pages/claim-success/hero/hero.jsx @@ -5,7 +5,18 @@ const description = ( <> Awesome! We will send you the swag as soon as possible.
- If you have made any mistake, please contact{' '} +
To check that your submission is valid
+ + Please click here + +
+
+
If you have made any mistake, please contact
nevo@novu.co diff --git a/src/components/pages/claim/hero/form.jsx b/src/components/pages/claim/hero/form.jsx index 36455f2b..554678e5 100644 --- a/src/components/pages/claim/hero/form.jsx +++ b/src/components/pages/claim/hero/form.jsx @@ -15,6 +15,21 @@ const Form = ({ info }) => { return ( <>
+

Some rules to follow before adding your information:

+ Select Prizes to claim: {info.map((winner) => (
@@ -30,8 +45,12 @@ const Form = ({ info }) => {
{winner.type === 'COMPETITION' && 'Competition Winner'} {winner.type === 'NOVU' && 'Novu Swag Claim'} - {winner.type === 'EXTRA' && 'Giveaway or other'} - Expires on{' '} - {moment.utc(winner.lastDateClaim).local().format('DD/MM/YYYY HH:mm')} + {(winner.type === 'EXTRA' || + winner.type === 'EXTRA2' || + winner.type === 'EXTRA3' || + winner.type === 'EXTRA4') && + 'Giveaway or other'}{' '} + - Expires on {moment.utc(winner.lastDateClaim).local().format('DD/MM/YYYY HH:mm')}
))} @@ -94,8 +113,8 @@ const Form = ({ info }) => { - + diff --git a/src/components/pages/claim/hero/hero.jsx b/src/components/pages/claim/hero/hero.jsx index 2ff6fd7e..3f317dc0 100644 --- a/src/components/pages/claim/hero/hero.jsx +++ b/src/components/pages/claim/hero/hero.jsx @@ -7,7 +7,7 @@ import { toast } from 'react-toastify'; import Hero2 from 'components/pages/no-win/hero'; -import Novu from '../../../shared/socials/novu'; +// import Novu from '../../../shared/socials/novu'; import Form from './form'; import NoLogged from './no-logged'; @@ -63,7 +63,6 @@ const Hero = ({ info }) => { onSubmit={all.handleSubmit(onSubmit)} >
-

{title}