import React from "react";
import State from './State'; //файл с меню
const ListMenu = props => {
const listMenu = State.menu.map((item,index) =>{
return (
<ItemMenu key={index} value={item}>
)
});
return {listMenu }
}
/*itemMenu*/
<li>
<NavLink to={`/${props.value.url}`}>
Profile
</NavLink>
</li>
const MenuList = [
{
id: 1,
name: "home",
url: "/"
},
{
id: 2,
name: "How it work",
url: "/how-it-work"
}
];
export default MenuList;
Ну с того что я заметил сразу зачем тебе делать в каждом файле state с меню сделай себе файл state.jsа как он должен выглядеть? Класс со стейтом и методами которые возвращают стейт класса ?
const DataList = {
banner: {
text:
"<p>DEVELOPERS & IT STAFF FROM POLAND</p><h5>Ggreenback IT center help your business grow</h5>"
},
home: {
box1: {
title: "WHY GGREENBACK IT?",
text:
"Israel IT Center is one of the largest Premium Staffing Service for companies — run by creatives, for creatives. We connect interactive professionals with companies looking for full-time talent. Whether you are a hiring manager looking for talent, our team is here to help and give you the best service",
itemList: [
{
id: 1,
img: "badge.png",
title: "STAFF’S HIGH PROFESSIONAL LEVEL",
text: "Excepteur sint occaecat proidentest laborum"
},
{
id: 2,
img: "startup.png",
title: "FAST AND PRECISE RECRUITMENT PROCESS",
text: "Deserunt mollit anim id est laborum"
},
{
id: 3,
img: "plan.png",
title: "INDIVIDUAL DEVELOPMENT PLAN",
text: "Officia deserunt mollit anim id est laborum"
},
{
id: 4,
img: "disc.png",
title: "OVER 60% SAVINGS ON LABOR COST",
text: "Proident, sunt in culpa qui officia deserunt mollit"
}
]
},
box2: {
title: "WE'VE GOT YOU COVERED",
text:
"What ever your needs are - we have a right fit for you! Select which area you need talents in and we’ll get them for you",
itemList: [
{
title: "QA",
img: "test.png"
},
{
title: "MANAGMENT",
img: "manag.png"
},
{
title: "CONTENT",
img: "cont.png"
},
{
title: "Test",
img: "syst.jpg"
},
{
title: "UX/UI DESIGN",
img: "desig.png"
},
{
title: "DEVELOPER",
img: "test.png"
}
]
},
partners: {
title: "ABOUT GGREENBACK IT CENTER",
text:
"Ggreenback IT Center is a hub of highly qualified and talented software engineers, designers, quality assurance and project managers that can implement any idea into life. Understanding the importance of having right people in your team we recruit the best specialists based on your requirements. Established to help companies and individuals around the world to optimize expenses and have their development team of any quantity at an affordable cost. operating in Warszawa, IT-capital of Poland, allows hiring highly professional developers of any level and type for comparatively lower remuneration.",
itemList: {
title: "OUR PARTNERS",
items: [
{
img: "airbnb.png"
},
{
img: "tinder.png"
},
{
img: "waze.png"
},
{
img: "play.png"
},
{
img: "ags.png"
},
{
img: "wooga.png"
}
]
},
quote: {
title: "OUR CLIENTS SAYING",
text:
"“We have built great working relationship with Ggreenback IT. I found them very professional, accurate in the profile understanding and due to that we created an amazing team with qualitative human capital. We were referred from colleagues of ours. Not only have we been amazed at the depth of understanding, we found ourselves working with a team of friends..”",
name: "Peter Bederman",
img: "user.png",
mark: "Head Of HR Yellow Head"
}
}
},
howItWork: {
box1: {
title: "WHAT IS INCLUDED IN THE FEE?",
text: "Ggreenback IT Center is one of the largest Premium Staffing Service for companies — run by creatives, for creatives. We connect interactive professionals with companies looking for full-time talent. Whether you are a hiring manager looking for talent, our team is here to help and give you the best service",
itemList: [
{
img: "working.png",
title: "Recruitment process from A to Z"
},
{
img: "info.png",
title: "HR services during employment period"
},
{
img: "budget.png",
title: "Full payroll services; employment, accounting, all taxes paid"
},
{
img: "office.png",
title: "Office rent and kitchen supplies"
},
{
img: "lang.png",
title: "English classes"
},
{
img: "health.png",
title: "Health care benefits"
},
{
img: "cocktail.png",
title: "Corporate events"
},
{
img: "gift.png",
title: "Birthday gifts"
},
{
img: "tea.png",
title: "Team-buildings"
}
]
}
}
};
export default DataList;