diff --git a/packages/frontend/src/Account.tsx b/packages/frontend/src/Account.tsx index 1697b59..b8bd1dd 100644 --- a/packages/frontend/src/Account.tsx +++ b/packages/frontend/src/Account.tsx @@ -57,11 +57,8 @@ function Account() { return (
-

Account Details

-
- - -
+

Account Details

+ - + - {organisations.map((organisation) => ( - - {organisation.Organisation.name} - - ))} + + Organisations + {organisations.map((organisation) => ( + + {organisation.Organisation.name} + + ))} + + {organisations.length > 0 && } + - {organisations.length > 0 && } diff --git a/packages/frontend/src/components/project-select.tsx b/packages/frontend/src/components/project-select.tsx index a1390e1..5a79491 100644 --- a/packages/frontend/src/components/project-select.tsx +++ b/packages/frontend/src/components/project-select.tsx @@ -5,7 +5,9 @@ import { Button } from "@/components/ui/button"; import { Select, SelectContent, + SelectGroup, SelectItem, + SelectLabel, SelectSeparator, SelectTrigger, SelectValue, @@ -42,17 +44,18 @@ export function ProjectSelect({ onOpenChange={setOpen} > - + - {projects.map((project) => ( - - {project.Project.name} - - ))} - {projects.length > 0 && } + + Projects + {projects.map((project) => ( + + {project.Project.name} + + ))} + {projects.length > 0 && } + (null); const fileInputRef = useRef(null); + const [showEdit, setShowEdit] = useState(false); const handleFileChange = async (e: React.ChangeEvent) => { const file = e.target.files?.[0]; @@ -40,9 +42,23 @@ export function UploadAvatar({ }; return ( -
+
{avatarURL && ( - Avatar + )} - + + {!avatarURL && ( + + )} {error && }
);