From 5f4a4f8daa2a6f2c3f062effdafa2f1483298cb6 Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 16 Sep 2024 14:57:36 +0200 Subject: [PATCH] fix: handle review comments --- .../inputs/new/AmountField/AmountField.AuxiliaryLabel.tsx | 2 +- .../inputs/new/FileDrop/FileDrop.UploadingModal.tsx | 6 +++--- .../src/components/inputs/new/FileDrop/FileDrop.tsx | 6 +++--- .../src/components/organisms/MediaForm/MediaFormPhotos.tsx | 4 ++-- .../src/components/organisms/MediaForm/MediaFormStory.tsx | 2 +- .../src/components/organisms/PostForm/PostForm.tsx | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web-components/src/components/inputs/new/AmountField/AmountField.AuxiliaryLabel.tsx b/web-components/src/components/inputs/new/AmountField/AmountField.AuxiliaryLabel.tsx index 12604d32dc..206d313b57 100644 --- a/web-components/src/components/inputs/new/AmountField/AmountField.AuxiliaryLabel.tsx +++ b/web-components/src/components/inputs/new/AmountField/AmountField.AuxiliaryLabel.tsx @@ -31,7 +31,7 @@ export const AuxiliaryLabel = ({ {auxiliaryLabel} )} - {`${availableLabel}:`}{' '} + {availableLabel}:  {getFormattedNumber(availableAmount)} diff --git a/web-components/src/components/inputs/new/FileDrop/FileDrop.UploadingModal.tsx b/web-components/src/components/inputs/new/FileDrop/FileDrop.UploadingModal.tsx index cedbb248a4..43faab14ed 100644 --- a/web-components/src/components/inputs/new/FileDrop/FileDrop.UploadingModal.tsx +++ b/web-components/src/components/inputs/new/FileDrop/FileDrop.UploadingModal.tsx @@ -4,11 +4,11 @@ import { Body, Title } from '../../../typography'; type Props = RegenModalProps & { fileUploadingTitle: string; - fileUplaodingDescription: string; + fileUploadingDescription: string; }; export const UploadingModal = ({ - fileUplaodingDescription, + fileUploadingDescription, fileUploadingTitle, open, onClose, @@ -23,6 +23,6 @@ export const UploadingModal = ({ {fileUploadingTitle} - {fileUplaodingDescription} + {fileUploadingDescription} ); diff --git a/web-components/src/components/inputs/new/FileDrop/FileDrop.tsx b/web-components/src/components/inputs/new/FileDrop/FileDrop.tsx index 22ac2b8d93..b2920c373b 100644 --- a/web-components/src/components/inputs/new/FileDrop/FileDrop.tsx +++ b/web-components/src/components/inputs/new/FileDrop/FileDrop.tsx @@ -40,7 +40,7 @@ export interface FileDropProps extends Partial { dropZoneOption?: DropzoneOptions; isCropSubmitDisabled?: boolean; fileUploadingTitle: string; - fileUplaodingDescription: string; + fileUploadingDescription: string; locationText: string; moveUpText: string; moveDownText: string; @@ -93,7 +93,7 @@ const FileDrop = forwardRef( fieldIndex = 0, isCropSubmitDisabled = false, fileUploadingTitle, - fileUplaodingDescription, + fileUploadingDescription, locationText, moveUpText, moveDownText, @@ -301,7 +301,7 @@ const FileDrop = forwardRef( setUploading(false)} - fileUplaodingDescription={fileUplaodingDescription} + fileUploadingDescription={fileUploadingDescription} fileUploadingTitle={fileUploadingTitle} /> {renderModal({ diff --git a/web-marketplace/src/components/organisms/MediaForm/MediaFormPhotos.tsx b/web-marketplace/src/components/organisms/MediaForm/MediaFormPhotos.tsx index 82153d88ec..b264bd694e 100644 --- a/web-marketplace/src/components/organisms/MediaForm/MediaFormPhotos.tsx +++ b/web-marketplace/src/components/organisms/MediaForm/MediaFormPhotos.tsx @@ -185,7 +185,7 @@ export const MediaFormPhotos = ({ <> } fileUploadingTitle={_(FILE_UPLOADING_TITLE)} - fileUplaodingDescription={_(FILE_UPLOADING_DESCRIPTION)} + fileUploadingDescription={_(FILE_UPLOADING_DESCRIPTION)} locationText={_(FILE_DROP_LOCATION_TEXT)} moveUpText={_(FILE_DROP_MOVE_UP_TEXT)} moveDownText={_(FILE_DROP_MOVE_DOWN_TEXT)}