Skip to content

Commit

Permalink
Update AppTrends.js
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 committed Nov 26, 2023
1 parent 130a2de commit 6204515
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/pages/App/AppTrends.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { setPrivateAccess as _setPrivateAccess } from '../../redux/actions/userA
import { getUserMetadata } from '../../api';
import { WRAPPED_URL } from '../../constants';
import Footer from './Footer';
import { SelectUserScreen, WrappedScreen } from '../Wrapped';

function WrappedAuthRedirectScreen() {
const { rest } = useParams();
Expand Down Expand Up @@ -68,9 +69,13 @@ function App() {
element={<WrappedAuthRedirectScreen />}
/>
<Route path="/user/*" element={<HomeScreen />} />
<Route path="/wrapped/:userId/:year" element={<WrappedScreen />} />
<Route path="/wrapped/:userId" element={<WrappedScreen />} />
<Route path="/wrapped" element={<SelectUserScreen />} />
{isAuthenticated && (
<Route path="/settings" element={<SettingsScreen />} />
)}
<Route path="/:userId" element={<WrappedScreen />} />
<Route exact path="/" element={<LandingScreen />} />
<Route path="*" element={<NoMatchScreen />} />
</Routes>
Expand Down

0 comments on commit 6204515

Please sign in to comment.