FundBoardCo / Hamilton

0 stars 0 forks source link

Default the Login Modal to Create On Search #158

Open JoshFundBoard opened 3 years ago

JoshFundBoard commented 3 years ago

If the login modal is shown on the search page, it's probably the case that the user is new, so it would be nice for it to be set to create instead of login as a default (there's a mode state, it would be 'create' in that instance).

I'm not sure if the best way to handle this is to add logic in the Login modal using useLocation from React-Router to check if the modal is on the search page, or to pass a prop into the modal from the ModalWrapper routes that open the modal.

JoshFundBoard commented 3 years ago

Default Login to Create on Search