diff --git a/src/components/About/TeamTab.jsx b/src/components/About/TeamTab.jsx index 1ec37d4..2c81e2a 100644 --- a/src/components/About/TeamTab.jsx +++ b/src/components/About/TeamTab.jsx @@ -35,7 +35,7 @@ const TeamMemberCards = ({ teamMembers }) => { return (
{ ); }); - return
{memberCards}
; + return
{memberCards}
; }; export default TeamMemberCards; diff --git a/src/components/About/__test__/__snapshots__/TeamTab.test.js.snap b/src/components/About/__test__/__snapshots__/TeamTab.test.js.snap index f557f28..572145e 100644 --- a/src/components/About/__test__/__snapshots__/TeamTab.test.js.snap +++ b/src/components/About/__test__/__snapshots__/TeamTab.test.js.snap @@ -2,10 +2,10 @@ exports[`renders correctly 1`] = `
-
- + +
+ {totalTickets === 0 ? ( +
+ +

+ Please purchase a ticket first. +

+
+ ) : ( + + )}
diff --git a/src/components/booking/__test__/__snapshots__/7Submission.test.js.snap b/src/components/booking/__test__/__snapshots__/7Submission.test.js.snap index 3cd076b..2266029 100644 --- a/src/components/booking/__test__/__snapshots__/7Submission.test.js.snap +++ b/src/components/booking/__test__/__snapshots__/7Submission.test.js.snap @@ -24,12 +24,18 @@ exports[`renders correctly 1`] = ` className="flex flex-col justify-center items-center text-center" >

Please be aware that this action
will cost you a ticket!

+
+ Total Tickets: + 0 +
- + +

+ Please purchase a ticket first. +

+
diff --git a/src/pages/Auth/index.jsx b/src/pages/Auth/index.jsx index 110923c..eb1e9b8 100755 --- a/src/pages/Auth/index.jsx +++ b/src/pages/Auth/index.jsx @@ -74,8 +74,7 @@ function Auth() { // Set cookie for 7 days upon successful sign-up Cookie.set("loggedInUser", user.uid, { expires: 7 }); - - router.push(`/thanks?from=${window.location.pathname}`); + router.push(`/thanks?from=${pathname}`); } authChange(); }) diff --git a/src/pages/Payment/index.jsx b/src/pages/Payment/index.jsx deleted file mode 100755 index eefeac4..0000000 --- a/src/pages/Payment/index.jsx +++ /dev/null @@ -1,61 +0,0 @@ -import Head from "next/head"; -import Image from "next/image"; -import { useTranslation } from "next-i18next"; -import { serverSideTranslations } from "next-i18next/serverSideTranslations"; -import React from "react"; - -import PaymentFormII from "@/components/PaymentForm/PaymentFormII"; - -import Layout from "@/layout/Layout"; - -import card from "../../../public/assets/Group 166.png"; - -const CardDetailsPage = () => { - const { t } = useTranslation("common"); - - return ( -
- - - {t("Payment")} - -
-

- {t("Add Card Details")} -

-

- {t( - "Please make sure all of the info you enter are the same as your card registration info." - )} -

-
-
- -
-
-
- payment cards -
-
-
-
-
-
- ); -}; - -export default CardDetailsPage; - -export async function getStaticProps({ locale }) { - return { - props: { - ...(await serverSideTranslations(locale, ["common"])), - // Will be passed to the page component as props - }, - }; -} diff --git a/src/pages/Payment/Tickets.jsx b/src/pages/Tickets/index.jsx similarity index 99% rename from src/pages/Payment/Tickets.jsx rename to src/pages/Tickets/index.jsx index 4a2300f..e8d9b06 100644 --- a/src/pages/Payment/Tickets.jsx +++ b/src/pages/Tickets/index.jsx @@ -78,7 +78,7 @@ const Tickets = ({ user }) => { {cards} - + ); }; diff --git a/src/pages/booking/index.jsx b/src/pages/booking/index.jsx index 3423ed6..c68ca38 100644 --- a/src/pages/booking/index.jsx +++ b/src/pages/booking/index.jsx @@ -72,7 +72,7 @@ function BookingPage({ dates, user }) { {t("Booking")} - {Step()} +
{Step()}
); } diff --git a/src/pages/calendar/index.jsx b/src/pages/calendar/index.jsx index 03d761a..4110206 100644 --- a/src/pages/calendar/index.jsx +++ b/src/pages/calendar/index.jsx @@ -8,6 +8,7 @@ import { useRouter } from "next/navigation"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import React, { useState } from "react"; +import styles from "../../styles/Calendar.module.css"; import EventModal from "@/components/calendarEvents/EventModal"; @@ -74,9 +75,11 @@ function Calendar({ appointments, user }) { userId={user.uid} /> )} -
+