mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-08 13:38:47 +00:00
Bild wird resetted
This commit is contained in:
parent
85b0e156de
commit
fd1bf1c10f
4 changed files with 41 additions and 70 deletions
|
@ -35,7 +35,7 @@ export default function AvatarDialog({
|
|||
ownAccount: boolean;
|
||||
username: string;
|
||||
}) {
|
||||
const { openFilePicker, filesContent, loading } = useFilePicker({
|
||||
const { openFilePicker, filesContent, loading, clear } = useFilePicker({
|
||||
accept: ".png, .jpg, .jpeg",
|
||||
multiple: false,
|
||||
readAs: "DataURL",
|
||||
|
@ -56,7 +56,7 @@ export default function AvatarDialog({
|
|||
setOpen(true);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setImageURL({ newImage: false }); // Reset the selected image when closing
|
||||
clear(); // Reset the selected image when closing
|
||||
setOpen(false);
|
||||
};
|
||||
const handleSaveChanges = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue