diff --git a/geneit_app/src/api/MemberApi.ts b/geneit_app/src/api/MemberApi.ts index b8b5ab8..6161e6d 100644 --- a/geneit_app/src/api/MemberApi.ts +++ b/geneit_app/src/api/MemberApi.ts @@ -201,6 +201,12 @@ export class MembersList { for (const m of list) { this.map.set(m.id, m); } + + this.list.sort((a, b) => + a.invertedFullName + .toLowerCase() + .localeCompare(b.invertedFullName.toLocaleLowerCase()) + ); } public get isEmpty(): boolean { diff --git a/geneit_app/src/hooks/context_providers/LoadingMessageProvider.tsx b/geneit_app/src/hooks/context_providers/LoadingMessageProvider.tsx index ef37f02..6c0c826 100644 --- a/geneit_app/src/hooks/context_providers/LoadingMessageProvider.tsx +++ b/geneit_app/src/hooks/context_providers/LoadingMessageProvider.tsx @@ -1,11 +1,8 @@ import { - Button, CircularProgress, Dialog, - DialogActions, DialogContent, DialogContentText, - DialogTitle, } from "@mui/material"; import React, { PropsWithChildren } from "react"; diff --git a/geneit_app/src/widgets/forms/UploadPhotoButton.tsx b/geneit_app/src/widgets/forms/UploadPhotoButton.tsx index ba0559b..34fb930 100644 --- a/geneit_app/src/widgets/forms/UploadPhotoButton.tsx +++ b/geneit_app/src/widgets/forms/UploadPhotoButton.tsx @@ -1,13 +1,12 @@ +import LinkIcon from "@mui/icons-material/Link"; +import UploadIcon from "@mui/icons-material/Upload"; import { Button } from "@mui/material"; -import { filesize } from "filesize"; import React from "react"; +import { Area } from "react-easy-crop"; import { ServerApi } from "../../api/ServerApi"; import { ImageCropperDialog } from "../../dialogs/ImageCropperDialog"; import { useAlert } from "../../hooks/context_providers/AlertDialogProvider"; -import { Area } from "react-easy-crop"; import getCroppedImg from "../../utils/crop_image"; -import UploadIcon from "@mui/icons-material/Upload"; -import LinkIcon from "@mui/icons-material/Link"; import { isDebug } from "../../utils/debug_utils"; import { selectFileToUpload } from "../../utils/files_utils";