Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
This repository was archived by the owner on May 1, 2025. It is now read-only.

Change props of MbMediaImport #148

@microchipgnu

Description

@microchipgnu

Let's change the informative props we pass on MbMediaImport to something more generic and flexible.

FROM

<MbMediaImport
   acceptedFormats={IMAGE_TYPES}
   handleFileAdd={() => null}
   handleFileRemove={() => null}
   idealDimensions="500x500px"
   isProfileImage
   maxSize={500}
   uploadedFile={null}
/>

TO something like

<MbMediaImport
   acceptedFormats={IMAGE_TYPES}
   handleFileAdd={() => null}
   handleFileRemove={() => null}
   isProfileImage
   maxSize={500}
   uploadedFile={null}
   options={{
      idealDimensions: "500x500px"
   }}
/>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions