From c8ef3a551f741a1435e7f507e17a5f4724f72d7b Mon Sep 17 00:00:00 2001 From: zojgame Date: Mon, 8 Apr 2024 11:24:03 +0500 Subject: [PATCH] changed distance circle to svg --- src/components/DistanceCircle.tsx | 43 +++++++++++++++++++++++++++++++ src/pages/InfrastructurePage.tsx | 12 +++------ 2 files changed, 46 insertions(+), 9 deletions(-) create mode 100644 src/components/DistanceCircle.tsx diff --git a/src/components/DistanceCircle.tsx b/src/components/DistanceCircle.tsx new file mode 100644 index 0000000..97f6776 --- /dev/null +++ b/src/components/DistanceCircle.tsx @@ -0,0 +1,43 @@ +interface DistanceCircleProps { + selectedRange: number; +} + +const DistanceCircle = ({ selectedRange }: DistanceCircleProps) => { + return ( + + + + + + + + + + + ); +}; + +export default DistanceCircle; diff --git a/src/pages/InfrastructurePage.tsx b/src/pages/InfrastructurePage.tsx index 1cd40e4..9756b45 100644 --- a/src/pages/InfrastructurePage.tsx +++ b/src/pages/InfrastructurePage.tsx @@ -3,21 +3,15 @@ import Button from "../components/Button"; import ArrowLeftIcon from "../components/icons/ArrowLeftIcon"; import CrossIcon from "../icons/CrossIcon"; import InfrastructureFilters from "../components/InfrastructurePage/InfrastructureFilters"; +import DistanceCircle from "../components/DistanceCircle"; function InfrastructurePage() { const [selectedRange, setSelectedRange] = useState(800); return (
-
-
+
+