Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change props of MbMediaImport #148

Open
microchipgnu opened this issue Feb 9, 2022 · 0 comments
Open

Change props of MbMediaImport #148

microchipgnu opened this issue Feb 9, 2022 · 0 comments
Assignees

Comments

@microchipgnu
Copy link
Member

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"
   }}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants