fixed code
This commit is contained in:
@ -2,6 +2,6 @@ import React from 'react';
|
||||
|
||||
import Candidate from '../components/Candidate/Candidate';
|
||||
|
||||
const CandidatePage = () => <Candidate />;
|
||||
const CandidatePage = ({ candidatesArr }) => <Candidate candidatesArr={candidatesArr} />;
|
||||
|
||||
export default CandidatePage;
|
||||
|
@ -2,6 +2,6 @@ import React from 'react';
|
||||
|
||||
import Home from '../components/Home/Home';
|
||||
|
||||
const HomePage = () => <Home />;
|
||||
const HomePage = ({ getCandidate }) => <Home getCandidate={getCandidate} />;
|
||||
|
||||
export default HomePage;
|
||||
|
Reference in New Issue
Block a user