diff --git a/centrifuge-app/src/pages/IssuerCreatePool/IssuerInput.tsx b/centrifuge-app/src/pages/IssuerCreatePool/IssuerInput.tsx index 25d811daa5..ac2ba587c3 100644 --- a/centrifuge-app/src/pages/IssuerCreatePool/IssuerInput.tsx +++ b/centrifuge-app/src/pages/IssuerCreatePool/IssuerInput.tsx @@ -70,8 +70,7 @@ export function IssuerInput({ waitingForStoredIssuer = false }: Props) { form.setFieldValue('issuerLogo', file) }} label="Issuer logo" - requirements="JPG/PNG/SVG, max 1MB, max 480x480px" - buttonLabel="Choose issuer logo" + placeholder="JPG/PNG/SVG, max 1MB, max 480x480px" errorMessage={meta.touched && meta.error ? meta.error : undefined} accept="image/*" /> diff --git a/centrifuge-app/src/pages/IssuerCreatePool/PoolDetailsSection.tsx b/centrifuge-app/src/pages/IssuerCreatePool/PoolDetailsSection.tsx index 3b8509d170..8e74ccc505 100644 --- a/centrifuge-app/src/pages/IssuerCreatePool/PoolDetailsSection.tsx +++ b/centrifuge-app/src/pages/IssuerCreatePool/PoolDetailsSection.tsx @@ -5,6 +5,7 @@ import { CurrencyInput, FileUpload, Grid, + ImageUpload, InputErrorMessage, Select, Text, @@ -49,7 +50,7 @@ export const PoolDetailsSection = () => { /> {({ field, meta, form }: FieldProps) => ( - { @@ -59,8 +60,9 @@ export const PoolDetailsSection = () => { label="Pool icon*" errorMessage={meta.touched && meta.error ? meta.error : undefined} accept="image/svg+xml" - fileTypeText="SVG (in square size)" - onClear={() => form.setFieldValue('poolIcon', null)} + placeholder="SVG (in square size)" + id="poolIcon" + height={144} /> )} @@ -142,13 +144,14 @@ export const PoolDetailsSection = () => { {({ field, meta, form }: FieldProps) => ( - form.setFieldValue('issuerLogo', file)} accept="image/png, image/jpeg, image/jpg" - fileTypeText="SVG, PNG, or JPG (max. 1MB; 480x480px)" + placeholder="SVG, PNG, or JPG (max. 1MB; 480x480px)" label="Issuer logo" - onClear={() => form.setFieldValue('issuerLogo', null)} + id="issuerLogo" + height={144} /> )} diff --git a/centrifuge-app/src/pages/IssuerPool/Configuration/Details.tsx b/centrifuge-app/src/pages/IssuerPool/Configuration/Details.tsx index 0ba902a43f..8a61118305 100644 --- a/centrifuge-app/src/pages/IssuerPool/Configuration/Details.tsx +++ b/centrifuge-app/src/pages/IssuerPool/Configuration/Details.tsx @@ -174,10 +174,10 @@ export function Details() { form.setFieldTouched('poolIcon', true, false) form.setFieldValue('poolIcon', file) }} - requirements="" label="Pool icon: SVG in square size*" errorMessage={meta.touched ? meta.error : undefined} accept="image/svg+xml" + onClear={() => form.setFieldValue('poolIcon', null)} /> )} @@ -193,7 +193,7 @@ export function Details() { {({ field, meta, form }: FieldProps) => (