Delete SurveyPagesList.tsx
This commit is contained in:
parent
4c9a4a4b5c
commit
831432ef41
1 changed files with 0 additions and 27 deletions
|
|
@ -1,27 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import styles from './SurveyPagesList.module.css';
|
|
||||||
import PageSurvey from "../PageSurvey/PageSurvey.tsx";
|
|
||||||
|
|
||||||
interface SurveyPagesListProps{
|
|
||||||
activePage: string;
|
|
||||||
onPageClick: (name: string) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
const SurveyPagesList: React.FC<SurveyPagesListProps> = ({activePage, onPageClick}) => {
|
|
||||||
const listPages: string[] = ['Создать опрос', 'Мои опросы']
|
|
||||||
|
|
||||||
return (
|
|
||||||
<ul className={styles.listSurveyPages}>
|
|
||||||
{listPages.map((page) => (
|
|
||||||
<PageSurvey
|
|
||||||
key={page}
|
|
||||||
name={page}
|
|
||||||
isActive={activePage === page}
|
|
||||||
onClick={() => onPageClick(page)}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default SurveyPagesList;
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue