RyanWarner / supernova

Universal React boilerplate. React, Firebase, Node, Express, Webpack, Styled Components.
7 stars 3 forks source link

Reduce modal verbosity #46

Open RyanWarner opened 4 years ago

RyanWarner commented 4 years ago

Currently to open a modal, we do it like this:

props.openModal({ modalName: 'LoginModal' })

but we would not lose much meaning to change this pattern to

props.openModal({ name: 'Login' })

which is less to type and quicker to read.

romansorin commented 4 years ago

What would the file structure/directories look like? Are files suffixed by Modal still? How will component registration be defined?