Delete PageSurvey.tsx
This commit is contained in:
parent
2c1dd98211
commit
c64f3c601e
1 changed files with 0 additions and 29 deletions
|
|
@ -1,29 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import styles from './PageSurvey.module.css';
|
|
||||||
|
|
||||||
interface PageSurveyProps{
|
|
||||||
name: string;
|
|
||||||
isActive: boolean;
|
|
||||||
onClick(): void;
|
|
||||||
}
|
|
||||||
|
|
||||||
const PageSurvey: React.FC<PageSurveyProps> = ({name, isActive, onClick}) => {
|
|
||||||
return (
|
|
||||||
<li className={styles.pagesSurveyItem}>
|
|
||||||
{isActive ? (
|
|
||||||
<>
|
|
||||||
<button className={`${styles.pageSurvey} ${styles.active}`} onClick={onClick}>
|
|
||||||
{name}
|
|
||||||
</button>
|
|
||||||
<hr className={styles.line}/>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<button className={`${styles.pageSurvey}`} onClick={onClick}>
|
|
||||||
{name}
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default PageSurvey;
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue