Skip to content

Commit

Permalink
reverted some changed back
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-Gu-81 committed Jan 24, 2025
1 parent 9c6dfac commit f3721b7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function App() {
<Route path="/my-friends" element={isAuthenticated ? <MyFriends user={user} friends={friends} /> : <Navigate to="/" />} />
<Route path="/rating-history" element={isAuthenticated ? <RatingHistory userName={user} profilePic={profilePic} filteredPost={filteredPost} setFilteredPost={setFilteredPost}/> : <Navigate to="/" />} />
<Route path="/comment/:post_id" element={isAuthenticated ? <Comment userName={user} profilePic={profilePic} setLikedPosts={setLikedPosts} /> : <Navigate to="/" />} />
<Route path="/liked-posts" element={isAuthenticated ? <Feed friends={friends} likedPosts={likedPosts} setLikedPosts={setLikedPosts} /> : <Navigate to="/" />} />
{/* <Route path="/liked-reviews" element={isAuthenticated ? <RatingHistory userName={user} profilePic={profilePic} filteredPost={likedPosts} setFilteredPost={setLikedPosts}/> : <Navigate to="/" />} /> */}
<Route path="*" element={<Navigate to="/" />} />
</Routes>
</Router>
Expand Down
1 change: 0 additions & 1 deletion src/components/Account/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function Account({
<Button
variant="contained"
className="liked-reviews-btn"
onClick={() => navigate("/liked-reviews")}
endIcon={<FavoriteBorderIcon />}
>
Liked Reviews
Expand Down
Empty file.
Empty file.

0 comments on commit f3721b7

Please sign in to comment.