Skip to content

Commit

Permalink
DemandPage - moved to /earn/demand (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitto-moz authored Nov 21, 2024
1 parent 5dc30ab commit 428ec69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-app/src/MobileRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const _Routes = ({ location }: RouteComponentProps) => {
<>
<Switch location={currentLocation}>
<Route exact path="/earn/summary" component={MobileEarningSummaryContainer} />
{isDemandMonitorFeatureFlagEnabled && <Route exact path="/demand" component={DemandMonitorPage} />}
{isDemandMonitorFeatureFlagEnabled && <Route path="/earn/demand" exact component={DemandMonitorPage} />}
<Route path="/account/summary" component={MobileAccountSummaryContainer} />
<Route exact path="/rewards/:id" component={RewardDetailsContainer} />
<Redirect exact from="/account/summary" to="/account/summary" />
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const _Routes = ({ location, isAuthenticated }: Props) => {
<Route path="/store/vault" exact component={VaultListContainer} />
{/* Recommended Target Rewards Page */}
<Route path="/store/select-target-reward" exact component={SelectTargetRewardContainer} />
{isDemandMonitorFeatureFlagEnabled && <Route path="/demand" exact component={DemandMonitorPage} />}
{/* Modals */}
{/* SaladPay: This is stand in until we figure out iFrames, popups... */}
<Route exact path="/salad-pay/order-summary" component={SaladPayOrderSummaryContainer} />
Expand All @@ -51,6 +50,7 @@ const _Routes = ({ location, isAuthenticated }: Props) => {
{/* Earn Pages */}
{isAuthenticated && <Redirect exact from="/earn" to="/earn/summary" />}
<Route path="/earn/summary" component={EarningSummaryContainer} />
{isDemandMonitorFeatureFlagEnabled && <Route path="/earn/demand" exact component={DemandMonitorPage} />}
<Route path="/earn" component={EarnInfoPage} />
<Route
exact
Expand Down

0 comments on commit 428ec69

Please sign in to comment.