From 4d9496a1f3b64979ecf83c08b58c4fd091c84dd6 Mon Sep 17 00:00:00 2001 From: Ray Okamoto <22254748+rayokamoto@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:20:35 +1030 Subject: [PATCH] chore: Better wording for user settings and sign up (#81) --- src/app/(account)/join/steps/StepFour.tsx | 8 +++++--- src/app/(account)/settings/Settings.tsx | 6 +++--- src/utils/format-date.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/(account)/join/steps/StepFour.tsx b/src/app/(account)/join/steps/StepFour.tsx index 6fbcebd5..8f74defa 100644 --- a/src/app/(account)/join/steps/StepFour.tsx +++ b/src/app/(account)/join/steps/StepFour.tsx @@ -8,8 +8,9 @@ import { useJoinUsStep, useJoinUsStudentInfo, useSetJoinUsHeading } from '../sto export default function StepFour() { useSetJoinUsHeading({ - title: 'Payment', - description: 'Complete membership payment', + title: 'Confirm Terms', + description: + 'You must read and agree to the terms and proceed to complete the membership payment.', }); const [agreement, setAgreement] = useState(false); @@ -42,8 +43,9 @@ export default function StepFour() { return (
+ {/* TODO: Add links to codes of conduct */} React.ReactNode; const SETTING_TABS = { - Account: () =>
WIP
, - 'Personal Info': () =>
WIP
, + Account: () =>
Coming soon
, + 'Personal Info': () =>
Coming soon
, Membership: MembershipSettings, - Notifications: () =>
WIP
, + Notifications: () =>
Coming soon
, } as const satisfies Record; export default function Settings({ settingData }: { settingData: SettingData }) { diff --git a/src/utils/format-date.ts b/src/utils/format-date.ts index 52048d07..2950f33f 100644 --- a/src/utils/format-date.ts +++ b/src/utils/format-date.ts @@ -2,6 +2,6 @@ export const formatDate = (date: Date) => { const day = date.getDate().toString().padStart(2, '0'); const month = (date.getMonth() + 1).toString().padStart(2, '0'); - const year = date.getFullYear().toString().slice(2); + const year = date.getFullYear().toString(); return `${day}/${month}/${year}`; };