drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

Refactor component structure of modal

Open phamhieu275 opened this issue 1 year ago • 3 comments

I have restructured the source code of the modal component with the following purposes:

  • There is a modal manager file to handle the overall management of modals in the system.
  • When adding a new modal, the logic will be written separately within that modal.
  • For existing export modals that share a common part to rename file, I have created a base modal for a common part.
  • I have combined the image and SQL export functionalities into a single modal, allowing the selection of corresponding formats.

Please review. Thank you very much.

phamhieu275 avatar May 22 '24 07:05 phamhieu275

@cmc-pvhieu is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 22 '24 07:05 vercel[bot]

Thank you! Could you please submit each feature in a separate PR so that they can each be reviewed separately.

And no need for drawdb and pdf modals. The modals are there to allow the user to see what they're exporting. Since I'm not planning to have a pdf viewer there's no need to the modal

1ilit avatar May 22 '24 07:05 1ilit

@1ilit

I have just separate and keep only refactored code of modal component. When exporting pdf or drawdb data, we cannot edit the file name. Other export functions can be edited, so I created a pdf and drawdb modal to unify the ability to rename exported files.

phamhieu275 avatar May 22 '24 09:05 phamhieu275