Can download / delete member photo
This commit is contained in:
@ -6,6 +6,7 @@ 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";
|
||||
|
||||
export function UploadPhotoButton(p: {
|
||||
label: string;
|
||||
@ -82,7 +83,13 @@ export function UploadPhotoButton(p: {
|
||||
return (
|
||||
<>
|
||||
{/* Upload button */}
|
||||
<Button onClick={uploadPhoto}>{p.label}</Button>
|
||||
<Button
|
||||
onClick={uploadPhoto}
|
||||
variant="outlined"
|
||||
startIcon={<UploadIcon />}
|
||||
>
|
||||
{p.label}
|
||||
</Button>
|
||||
|
||||
{/* Crop image dialog */}
|
||||
{imageURL && (
|
||||
|
Reference in New Issue
Block a user