first commit

This commit is contained in:
Hope87
2021-05-26 13:35:57 +03:00
parent 21a43fbd61
commit f772d1c0fa
29 changed files with 737 additions and 62 deletions

View File

@ -0,0 +1,25 @@
import React from 'react';
import { NavLink } from 'react-router-dom';
// import PhotoBlock from './PhotoBlock';
// import { candidatesList } from '../Home/Home'
import classes from './Candidate.module.scss';
const Candidate = () => {
// const { id: candidateId } = useParams();
// const currentCandidate = candidatesList.find((el) => el.id === Number(candidateId));
return (
<div className={classes.wrapper}>
<NavLink to="/">Home</NavLink>
{/* <h1>
Candidate name: <span>{currentCandidate.name}</span>
</h1>
<PhotoBlock /> */}
</div>
);
};
export default Candidate;

View File

@ -0,0 +1,4 @@
.wrapper {
font-size: 30px;
color: red;
}

View File

@ -0,0 +1,12 @@
import React from 'react';
const PhotoBlock = () => {
return (
<div>
PhotoBlock
</div>
);
};
export default PhotoBlock;

View File

@ -0,0 +1,3 @@
import Candidate from './Candidate';
export default Candidate;