From 7a6aaa07707fcf6b7918182ff9957e71aa32529d Mon Sep 17 00:00:00 2001 From: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com> Date: Sat, 14 Oct 2023 08:25:39 +0000 Subject: [PATCH 1/4] fix: changes to website (#97) * chore: payment changes * fix: hero section * feat: add priority --- config/content/payment.js | 1 + src/components/EventSection/index.jsx | 2 +- src/components/Payment/PaymentCard.jsx | 17 ++++++++++- src/components/Registration/index.jsx | 1 + src/components/UserProfile/styles.js | 1 + src/components/marginals/Navbar/styles.jsx | 2 +- src/pages/events.js | 2 +- src/pages/payment.js | 35 +++++++++++++++------- src/utils/useEvents.js | 12 ++++++-- 9 files changed, 56 insertions(+), 17 deletions(-) diff --git a/config/content/payment.js b/config/content/payment.js index ef4b6c2..4639b3f 100644 --- a/config/content/payment.js +++ b/config/content/payment.js @@ -17,6 +17,7 @@ export const PaymentContent = { warning: 'Note: Registration fee is non-refundable.', info: 'Check your details before proceeding to payment.', endNote: 'For any queries, contact us at: +91 1234567890', + caption: 'Early Bird Registration Fee', proceed: 'Proceed to Payment', cancel: 'Cancel', termsLink: 'https://www.google.com/', diff --git a/src/components/EventSection/index.jsx b/src/components/EventSection/index.jsx index 1f35c5b..87cb696 100644 --- a/src/components/EventSection/index.jsx +++ b/src/components/EventSection/index.jsx @@ -6,7 +6,7 @@ import useEvents from '../../utils/useEvents'; import { _event } from '../../../config/content'; const EventSection = () => { - const { events } = useEvents('Technical'); + const { events } = useEvents(); return ( { const { userData, token } = useContext(AuthContext); - const { title, description, endNote, info, proceed, termsLink, warning } = PaymentContent; + const { title, description, endNote, info, proceed, termsLink, warning, caption } = + PaymentContent; const [agreed, setAgreed] = useState(false); const api = Api.getInstance(); @@ -67,6 +68,20 @@ const PaymentCard = () => { {warning} + {/* TODO: Remove afterwards */} + + {caption}: ₹1000 + + ₹750 + +