Skip to content

Commit

Permalink
Fix FE linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaF committed Nov 15, 2024
1 parent 60e60ee commit 75d7ad0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/app/allRooms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import AllRoomsSearchBar from "components/AllRoomsSearchBar";
import useAllRooms from "hooks/useAllRooms";
import { useMemo, useState } from "react";
import { useSelector } from "react-redux";
import { selectAllRoomsFilters } from "redux/allRoomsFilterSlice";

import AllRoomsFilter from "../../components/AllRoomsFilter";
import Room from "../../components/AllRoomsRoom";
import RoomList from "../../components/AllRoomsRoomList";
import { selectAllRoomsFilters } from "redux/allRoomsFilterSlice";

export default function Page() {
const filters = useSelector(selectAllRoomsFilters);
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/AllRoomsFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Button } from "@mui/material";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { styled } from "@mui/system";
import { clearAllRoomsFilters } from "redux/allRoomsFilterSlice";
import { useDispatch } from "redux/hooks";
import { AllRoomsFilters } from "types";

import FilterSideBar from "./FilterSideBar";
import { clearAllRoomsFilters } from "redux/allRoomsFilterSlice";

const AllRoomsFilter: React.FC<{ filters: AllRoomsFilters }> = ({
filters,
Expand Down
8 changes: 4 additions & 4 deletions frontend/components/FilterSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Box } from "@mui/material";
import { styled } from "@mui/material/styles";
import { BoxProps } from "@mui/system";
import { useCallback, useMemo } from "react";
import {
setAllRoomsFilter,
unsetAllRoomsFilter,
} from "redux/allRoomsFilterSlice";
import { useDispatch } from "redux/hooks";
import { AllRoomsFilters, DropDownItem } from "types";
import { allRoomsFilterDropdown } from "utils/constants";

import DropdownSelections from "./DropdownSelections";
import {
setAllRoomsFilter,
unsetAllRoomsFilter,
} from "redux/allRoomsFilterSlice";

const StyledFilterSideBarContainer = styled(Box)<BoxProps>(({ theme }) => ({
display: "flex",
Expand Down

0 comments on commit 75d7ad0

Please sign in to comment.