@@ -17,15 +33,14 @@ const Navigation: React.FC
= ({onNavigationClick, activePage})
{items.map(item => (
onNavigationClick(item)}
+ key={item.id}
+ title={item.title}
+ isActive={activePage === item.id}
+ onClick={() => handleNavigationClick(item.id)}
/>
))}
-
);
diff --git a/SurveyFrontend/src/components/PageSurvey/PageSurvey.module.css b/SurveyFrontend/src/components/PageSurvey/PageSurvey.module.css
deleted file mode 100644
index 2e845fa..0000000
--- a/SurveyFrontend/src/components/PageSurvey/PageSurvey.module.css
+++ /dev/null
@@ -1,22 +0,0 @@
-/*PageSurvey.module.css*/
-
-.pagesSurveyItem{
- align-items: center;
-}
-
-.pageSurvey{
- font-size: 24px;
- font-weight: 600;
- color: #2A6DAE;
- padding: 0;
- border: none;
- background-color: #ffffff;
- padding-bottom: 5px;
- white-space: nowrap;
-}
-
-.active{
- color: #000000;
- text-decoration: underline;
- text-decoration-color: #3881C8;
-}
\ No newline at end of file
diff --git a/SurveyFrontend/src/components/PageSurvey/PageSurvey.tsx b/SurveyFrontend/src/components/PageSurvey/PageSurvey.tsx
deleted file mode 100644
index adc8adb..0000000
--- a/SurveyFrontend/src/components/PageSurvey/PageSurvey.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-import styles from './PageSurvey.module.css';
-
-interface PageSurveyProps{
- name: string;
- isActive: boolean;
- onClick(): void;
-}
-
-const PageSurvey: React.FC