Skip to content

Commit

Permalink
fixed merge conflict errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Sep 21, 2024
1 parent 06e180a commit 5db2c10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 6 additions & 5 deletions frontend/src/components/auth/PrivateRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ const PrivateRoute: React.FC<{ children: React.ReactElement }> = ({
children,
}) => {
const { authenticatedUser } = useContext(AuthContext);

Check warning on line 12 in frontend/src/components/auth/PrivateRoute.tsx

View workflow job for this annotation

GitHub Actions / run-lint

'authenticatedUser' is assigned a value but never used
return ( // after return, add "authenticatedUser ?""
return (
// after return, add "authenticatedUser ?""
<Flex>
<SideBar />
{children}
</Flex>
// ) : (
// <Navigate to={LOGIN_PAGE} />
// );
)
// ) : (
// <Navigate to={LOGIN_PAGE} />
// );
);
};

export default PrivateRoute;
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ const GroupList: React.FC<{
const [processedAnnouncements, setProcessedAnnouncements] =
useState<ProcessedGroupAnnouncements>();

const [searchRooms, setSearchRooms] = useState<number[]>([]);
const [allRooms, setAllRooms] = useState([1, 2, 3, 4, 5, 6]);

useEffect(() => {
const processedData: ProcessedGroupAnnouncements = {
all: {},
Expand Down

0 comments on commit 5db2c10

Please sign in to comment.