-
-
Save mihailsitnic/58e6ea5e729d9c6fcd6e6cc44023e884 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Main = (props) => { | |
const { gifts, friends, selectGift, addFriendToOrder, isMenuOpen } = props; | |
return ( | |
<div className={isMenuOpen ? 'body cf active' : 'body cf'}> | |
<HotOffers /> | |
<div className="wrapper"> | |
<FriendsLine friends={friends} addFriendToOrder={addFriendToOrder}/> | |
<FilterCategories /> | |
<ListGifts gifts={gifts} selectGift={selectGift}/> | |
</div> | |
</div> | |
) | |
} | |
Main.propTypes = { | |
gifts: PropTypes.array, | |
friends: PropTypes.array | |
} | |
export default Main; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment