diff --git a/src/components/UI/FileInput.module.scss b/src/components/UI/FileInput.module.scss index 6f1cc0b0..0a87fb43 100644 --- a/src/components/UI/FileInput.module.scss +++ b/src/components/UI/FileInput.module.scss @@ -51,7 +51,7 @@ >p { position: absolute; - color: black; + color: white; font-weight: 600; top: 50%; left: 50%; diff --git a/src/components/UI/FileInput.tsx b/src/components/UI/FileInput.tsx index 7c59f47a..f5a61063 100644 --- a/src/components/UI/FileInput.tsx +++ b/src/components/UI/FileInput.tsx @@ -6,6 +6,7 @@ import { ChangeEvent, useRef, useState } from 'react'; * Renders a component that allows the user to upload a file. */ const FileUpload = ({ + textColor = 'white', label, value = '', onChange, @@ -13,6 +14,8 @@ const FileUpload = ({ className = '', bg = 'white', }: { + /** The text color when there no image has been uploaded */ + textColor?: string; /** The label to display. */ label: string; /** The value of the file. */ @@ -77,7 +80,7 @@ const FileUpload = ({ )} -

+

Choisir un fichier{' '} {type .map((t) => `.${t}`) diff --git a/src/components/dashboard/ItemModal.tsx b/src/components/dashboard/ItemModal.tsx index 1278f2f6..ef107d52 100644 --- a/src/components/dashboard/ItemModal.tsx +++ b/src/components/dashboard/ItemModal.tsx @@ -135,6 +135,7 @@ const ItemModal = ({ />