Created separate Landing page at path /landing. Added it to top level routes.
Home page code refactored.
Moved checking in localStorage and based on flag showing either Landing or Home screen to App.js where it should be ideally. We're creating InMemoryRouter starting location based on that flag.
Removed all navigateTo props and direct history import in some of pages and instead using useNavigate hook to get access to navigate function on history object.
/landing
. Added it to top level routes.Landing
orHome
screen to App.js where it should be ideally. We're creating InMemoryRouter starting location based on that flag.useNavigate
hook to get access tonavigate
function on history object.