diff --git a/client/src/pages/Boilers.tsx b/client/src/pages/Boilers.tsx deleted file mode 100644 index fc13ac8..0000000 --- a/client/src/pages/Boilers.tsx +++ /dev/null @@ -1,72 +0,0 @@ -import { useEffect, useState } from 'react' -import { useBoilers } from '../hooks/swrHooks' -import CustomTable from '../components/CustomTable' -import { Text } from '@fluentui/react-components' - -function Boilers() { - const [boilersPage, setBoilersPage] = useState(1) - const [boilerSearch, setBoilerSearch] = useState("") - const [debouncedBoilerSearch, setDebouncedBoilerSearch] = useState("") - const { boilers } = useBoilers(10, boilersPage, debouncedBoilerSearch) - - useEffect(() => { - const handler = setTimeout(() => { - setDebouncedBoilerSearch(boilerSearch) - }, 500) - - return () => { - clearTimeout(handler) - } - }, [boilerSearch]) - - useEffect(() => { - setBoilersPage(1) - setBoilerSearch("") - }, []) - - return ( -