diff --git a/frontend/src/pages/account/account-profile.tsx b/frontend/src/pages/account/account-profile.tsx index 6f9101aa..566656c6 100644 --- a/frontend/src/pages/account/account-profile.tsx +++ b/frontend/src/pages/account/account-profile.tsx @@ -25,12 +25,13 @@ const useStyles = makeStyles((theme) => ({ })); const AccountProfile: React.FC<{ + data?: any; handleRemove: any; isLoading: boolean; errors: string[]; setShowProfile: any; setShowPassword: any; -}> = ({ handleRemove, isLoading, errors, setShowProfile, setShowPassword }) => { +}> = ({ data, handleRemove, isLoading, errors, setShowProfile, setShowPassword }) => { const classes = useStyles(); const [open, setOpen] = React.useState(false); @@ -43,26 +44,22 @@ const AccountProfile: React.FC<{ setOpen(false); }; - const user = { - avatar: '/avatar_11.png', - }; - return (
- John Doe + {data?.firstName} {data?.lastName} - admin@1.com + {data?.email} - Account created on 11/22/2019 + Account created on {data?.createdAt}
- +

- - + <> + +

+ If you delete your account, all data related to your account will be permanently deleted. + Are you sure you want to proceed? +

+ + + )}
diff --git a/frontend/src/pages/account/account.tsx b/frontend/src/pages/account/account.tsx index eb611b75..40c2a277 100644 --- a/frontend/src/pages/account/account.tsx +++ b/frontend/src/pages/account/account.tsx @@ -134,6 +134,7 @@ const Account: React.FC = () => {