diff --git a/src/components/form/UpdateAccountForm.tsx b/src/components/form/UpdateAccountForm.tsx index 461ce7d..1a93817 100644 --- a/src/components/form/UpdateAccountForm.tsx +++ b/src/components/form/UpdateAccountForm.tsx @@ -1,8 +1,7 @@ import * as forms from "codeforlife/components/form" -import { Stack, Typography } from "@mui/material" import { getDirty, isDirty } from "codeforlife/utils/form" import { type FC } from "react" -import { LinkButton } from "codeforlife/components/router" +import { Typography } from "@mui/material" import { useNavigate } from "codeforlife/hooks" import { @@ -159,12 +158,11 @@ const UpdateAccountForm: FC = ({ user }) => { placeholder="Enter your current password" /> )} - - - Cancel - - Update details - + ({ marginTop: theme.spacing(3) })} + > + Update details + ) }} diff --git a/src/pages/teacherDashboard/account/Account.tsx b/src/pages/teacherDashboard/account/Account.tsx index 2de3b4c..0975581 100644 --- a/src/pages/teacherDashboard/account/Account.tsx +++ b/src/pages/teacherDashboard/account/Account.tsx @@ -17,8 +17,8 @@ export interface AccountProps { const Account: FC = ({ authUser, view }) => { if (view) { return { - otp: , - backupTokens: , + otp: , + backupTokens: , }[view] } @@ -31,6 +31,11 @@ const Account: FC = ({ authUser, view }) => { + Two factor authentication + + Use your smartphone or tablet to enhance your account's security + by using an authenticator app. + diff --git a/src/pages/teacherDashboard/account/Manage2FAForm.tsx b/src/pages/teacherDashboard/account/Manage2FAForm.tsx index b886e91..6e95c7a 100644 --- a/src/pages/teacherDashboard/account/Manage2FAForm.tsx +++ b/src/pages/teacherDashboard/account/Manage2FAForm.tsx @@ -16,11 +16,6 @@ const Setup2FAForm: FC<{ user: SchoolTeacherUser }> = ({ const theme = useTheme() return ( <> - Two factor authentication - - Use your smartphone or tablet to enhance your account's security by - using an authenticator app. -