From 222146bead4a5dc0cd9bc7748a1b3ff93ee0d11f Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Fri, 14 Nov 2025 17:13:30 +0900 Subject: [PATCH] remove unused components --- client/src/pages/Boilers.tsx | 72 ------------------------------ client/src/pages/ComponentTest.tsx | 11 ----- 2 files changed, 83 deletions(-) delete mode 100644 client/src/pages/Boilers.tsx delete mode 100644 client/src/pages/ComponentTest.tsx 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 ( -
- - Котельные - - - {boilers && - - } -
- ) -} - -export default Boilers \ No newline at end of file diff --git a/client/src/pages/ComponentTest.tsx b/client/src/pages/ComponentTest.tsx deleted file mode 100644 index 3ba7209..0000000 --- a/client/src/pages/ComponentTest.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import ServerHardware from '../components/ServerHardware' - -const ComponentTest = () => { - return ( -
- -
- ) -} - -export default ComponentTest \ No newline at end of file