Minor cleanup

This commit is contained in:
Pierre HUBERT 2023-08-18 15:33:11 +02:00
parent 4b0292f0a4
commit b424495fd9
3 changed files with 9 additions and 7 deletions

View File

@ -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 {

View File

@ -1,11 +1,8 @@
import {
Button,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from "@mui/material";
import React, { PropsWithChildren } from "react";

View File

@ -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";