From c6fd912aee87b74b9e09e63e15288cb02265eab5 Mon Sep 17 00:00:00 2001 From: zojgame Date: Fri, 12 Apr 2024 17:45:01 +0500 Subject: [PATCH] styles fix --- .../InfrastructureFilters.tsx | 3 +- src/components/Mark.tsx | 12 ++--- src/components/TransportMark.tsx | 4 +- src/components/icons/EducationIcon.tsx | 2 +- src/components/icons/SportIcon.tsx | 22 ++------ .../icons/marks/MarkEducationIcon.tsx | 50 ++++++++----------- src/components/icons/marks/MarkHeathyIcon.tsx | 14 +++--- src/components/icons/marks/MarkSportIcon.tsx | 29 +++++------ src/marks.json | 26 ++-------- 9 files changed, 62 insertions(+), 100 deletions(-) diff --git a/src/components/InfrastructurePage/InfrastructureFilters.tsx b/src/components/InfrastructurePage/InfrastructureFilters.tsx index bed445f..739a707 100644 --- a/src/components/InfrastructurePage/InfrastructureFilters.tsx +++ b/src/components/InfrastructurePage/InfrastructureFilters.tsx @@ -39,7 +39,8 @@ const InfrastructureFilters = ({ useEffect(() => { const filteredMarks = marks.filter( - (mark) => mark.icon === filter && mark.distance <= selectedRange + (mark) => + mark.icon === filter && mark.distance && mark.distance <= selectedRange ); const filteredTransportMarks = transportMarks.filter( (mark) => mark.icon === filter && mark.distance <= selectedRange diff --git a/src/components/Mark.tsx b/src/components/Mark.tsx index fafff78..920b0b2 100644 --- a/src/components/Mark.tsx +++ b/src/components/Mark.tsx @@ -42,8 +42,10 @@ const Mark = ({ + {transport} diff --git a/src/components/icons/EducationIcon.tsx b/src/components/icons/EducationIcon.tsx index a6fa3cf..e1209df 100644 --- a/src/components/icons/EducationIcon.tsx +++ b/src/components/icons/EducationIcon.tsx @@ -7,7 +7,7 @@ const EducationIcon = () => { fill="none" xmlns="http://www.w3.org/2000/svg" > - + { fill="none" xmlns="http://www.w3.org/2000/svg" > - + - - - - + + diff --git a/src/components/icons/marks/MarkEducationIcon.tsx b/src/components/icons/marks/MarkEducationIcon.tsx index d7f47b6..885a7d3 100644 --- a/src/components/icons/marks/MarkEducationIcon.tsx +++ b/src/components/icons/marks/MarkEducationIcon.tsx @@ -1,35 +1,25 @@ const MarkEducationIcon = () => { return ( - - - - - - - + <> + + + + + + + + + ); }; diff --git a/src/components/icons/marks/MarkHeathyIcon.tsx b/src/components/icons/marks/MarkHeathyIcon.tsx index 8366b20..2c7315e 100644 --- a/src/components/icons/marks/MarkHeathyIcon.tsx +++ b/src/components/icons/marks/MarkHeathyIcon.tsx @@ -1,11 +1,13 @@ function MarkHeathyIcon() { return ( - + <> + + ); } diff --git a/src/components/icons/marks/MarkSportIcon.tsx b/src/components/icons/marks/MarkSportIcon.tsx index 58e6b3b..61308f2 100644 --- a/src/components/icons/marks/MarkSportIcon.tsx +++ b/src/components/icons/marks/MarkSportIcon.tsx @@ -1,28 +1,25 @@ const MarkSportIcon = () => { return ( - - + <> + - - + + - + ); }; export { MarkSportIcon }; diff --git a/src/marks.json b/src/marks.json index baf9cf8..753450b 100644 --- a/src/marks.json +++ b/src/marks.json @@ -246,7 +246,7 @@ "x": 1010, "y": 1340, "icon": "heathy", - "distance": 400 + "distance": 450 }, { "id": "heathy_2", @@ -262,7 +262,7 @@ "x": 780, "y": 1170, "icon": "heathy", - "distance": 450 + "distance": 500 }, { "id": "heathy_4", @@ -287,15 +287,7 @@ "x": 1520, "y": 810, "icon": "heathy", - "distance": 750 - }, - { - "id": "heathy_6", - "label": "Детская поликлиника", - "x": 1480, - "y": 850, - "icon": "heathy", - "distance": 650 + "distance": 700 }, { "id": "heathy_6", @@ -311,7 +303,7 @@ "x": 1360, "y": 1330, "icon": "heathy", - "distance": 600 + "distance": 500 }, { "id": "heathy_9", @@ -321,14 +313,6 @@ "icon": "heathy", "distance": 700 }, - { - "id": "education_8", - "label": "Империя", - "x": 1320, - "y": 1280, - "icon": "education", - "distance": 500 - }, { "id": "education_1", "label": "Детский сад №9", @@ -340,7 +324,7 @@ { "id": "education_2", "label": "Детский сад №582", - "x": 1280, + "x": 1300, "y": 1020, "icon": "education", "distance": 350