Skip to content

Commit

Permalink
rename filtering components
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Bechthold committed Jan 1, 2024
1 parent 68dd6ef commit 6422dad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/pages/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import NavigationBar from "../../common/NavigationBar";
import CreateLog from "../../forms/CreateLog";
import { LogRecord } from "../../../types/LogRecordTypes";
import LogRecordsTable from "./LogRecordsTable";
import SearchAndFilters from "./SearchAndFilters";
import HomePageFilters from "./HomePageFilters";
import ExportCSVButton from "../../common/ExportCSVButton";
import LogRecordAPIClient from "../../../APIClients/LogRecordAPIClient";
import { SelectLabel } from "../../../types/SharedTypes";
Expand Down Expand Up @@ -167,7 +167,7 @@ const HomePage = (): React.ReactElement => {
</Flex>
</Flex>

<SearchAndFilters
<HomePageFilters
residents={residents}
employees={employees}
startDate={startDate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Props = {
setFlagged: React.Dispatch<React.SetStateAction<boolean>>;
};

const SearchAndFilters = ({
const HomePageFilters = ({
residents,
employees,
startDate,
Expand Down Expand Up @@ -373,4 +373,4 @@ const SearchAndFilters = ({
);
};

export default SearchAndFilters;
export default HomePageFilters;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ResidentAPIClient from "../../../APIClients/ResidentAPIClient";
import BuildingAPIClient from "../../../APIClients/BuildingAPIClient";
import Pagination from "../../common/Pagination";
import CreateResident from "../../forms/CreateResident";
import Filters from "./Filters"
import ResidentDirectoryFilters from "./ResidentDirectoryFilters"
import { SelectLabel } from "../../../types/SharedTypes";
import { convertToString } from "../../../helper/dateHelpers";

Expand Down Expand Up @@ -137,7 +137,7 @@ const ResidentDirectory = (): React.ReactElement => {
/>
</Flex>

<Filters
<ResidentDirectoryFilters
residentSelections={residentSelections}
buildingSelections={buildingSelections}
statusSelections={statusSelections}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Props = {
setEndDate: React.Dispatch<React.SetStateAction<Date | undefined>>;
};

const Filters = ({
const ResidentDirectoryFilters = ({
residentSelections,
buildingSelections,
statusSelections,
Expand Down Expand Up @@ -242,4 +242,4 @@ const Filters = ({
);
};

export default Filters;
export default ResidentDirectoryFilters;

0 comments on commit 6422dad

Please sign in to comment.