diff --git a/src/app/(dashboard)/dashboard/account/page.tsx b/src/app/(dashboard)/dashboard/account/page.tsx
index 1eddb2c1..b0b8154b 100644
--- a/src/app/(dashboard)/dashboard/account/page.tsx
+++ b/src/app/(dashboard)/dashboard/account/page.tsx
@@ -100,7 +100,12 @@ const Account = () => {
-
+
)}
-
+
Choisir un fichier{' '}
{type
.map((t) => `.${t}`)
diff --git a/src/components/dashboard/ItemModal.tsx b/src/components/dashboard/ItemModal.tsx
index 95024fab..ef107d52 100644
--- a/src/components/dashboard/ItemModal.tsx
+++ b/src/components/dashboard/ItemModal.tsx
@@ -26,6 +26,7 @@ const ItemModal = ({
const [infos, setInfos] = useState(item?.infos || null);
const [logo, setLogo] = useState(null);
const [display, setDisplay] = useState(item?.display || false);
+ const [deleteImg, setDeleteImg] = useState(false);
const [attribute, setAttribute] = useState(item?.attribute || null);
const [category, setCategory] = useState(item?.category || null);
@@ -47,6 +48,10 @@ const ItemModal = ({
return `${year}-${month}-${day}T${hours}:${minutes}`;
};
+ function deleteLogo(): void {
+ setDeleteImg(!deleteImg);
+ }
+
return (
{
let image;
- if (item?.image || logo) {
+ if ((item?.image || logo) && !deleteImg) {
image = true;
}
@@ -129,7 +134,15 @@ const ItemModal = ({
onChange={(value) => setQuantity(value as unknown as number)}
/>
-
+
+
+
>
diff --git a/src/components/dashboard/PartnerModal.tsx b/src/components/dashboard/PartnerModal.tsx
index e0b08c4b..0c3dee08 100644
--- a/src/components/dashboard/PartnerModal.tsx
+++ b/src/components/dashboard/PartnerModal.tsx
@@ -77,6 +77,7 @@ const PartnerModal = ({
updateSignup('username', value)}
autocomplete="nickname"