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.
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.