diff --git a/client/src/app/features/user/components/UserProfileView.tsx b/client/src/app/features/user/components/UserProfileView.tsx index 36465e9..59d07ef 100644 --- a/client/src/app/features/user/components/UserProfileView.tsx +++ b/client/src/app/features/user/components/UserProfileView.tsx @@ -1,6 +1,7 @@ import { useEffect, useRef, useState } from "react"; import type { FormEvent } from "react"; import { Link } from "react-router-dom"; +import EditIcon from "@mui/icons-material/Edit"; import Dialog from "@mui/material/Dialog"; import DialogTitle from "@mui/material/DialogTitle"; import DialogContent from "@mui/material/DialogContent"; @@ -83,7 +84,7 @@ export function UserProfileView({ }; return ( -
+
{initials(profile.firstName, profile.lastName)}
@@ -144,16 +145,20 @@ export function UserProfileView({ saveLabel={text.userUpdateSubmit} cancelLabel={text.userUpdateCancel} /> - +
+ +
+
+ {text.userSubscriptionTier} + {profile.subscriptionTier} +
{profile.subscriptionTier === "free" && ( -
- - {text.userUpgradeToPaid} - -
+ + {text.userUpgradeToPaid} + )}
@@ -194,15 +199,6 @@ export function UserProfileView({ ); } -function ProfileRow({ label, value }: { label: string; value: string }) { - return ( -
- {label} - {value} -
- ); -} - type EditableProfileRowProps = { label: string; value: string; @@ -238,7 +234,7 @@ function EditableProfileRow({ }: EditableProfileRowProps) { if (isEditing) { return ( -
+ +
{label} -
- {value} - -
+ {value} +
); }