reorproject / reor

Private & local AI personal knowledge management app for high entropy people.
https://reorproject.org
GNU Affero General Public License v3.0
7.19k stars 445 forks source link

Migrate away from modal context #439

Open joseplayero opened 1 month ago

joseplayero commented 1 month ago

We should have a shadcn dialog component that we use for every modal and then whenever a modal is needed, the component that generates the component can just import the child content that goes inside the modal/dialog. That will make the codebase simpler and easier to understand in my opinion

@milaiwi do you have thoughts on matter?

milaiwi commented 1 month ago

Yeah, that'd be much better. So essentially defining an export ReusableDialog that another component imports and passes it's own CustomContent.