|
|
|
|
|
|
|
|
const ProfileLayout = (props) => { |
|
|
const ProfileLayout = (props) => { |
|
|
return ( |
|
|
return ( |
|
|
<ProfileLayoutContainer |
|
|
<ProfileLayoutContainer |
|
|
|
|
|
isAdmin={props.isAdmin} |
|
|
singleOffer={props.singleOffer} |
|
|
singleOffer={props.singleOffer} |
|
|
profile={props.profile} |
|
|
profile={props.profile} |
|
|
> |
|
|
> |
|
|
{props.children} |
|
|
{props.children} |
|
|
<ContentRightCardContainer container spacing={2}> |
|
|
<ContentRightCardContainer container spacing={2}> |
|
|
<Content sm={12} md={9} lg={9} item>{props.content}</Content> |
|
|
|
|
|
<RightCard sm={0} md={3} lg={3} item singleOffer={props.singleOffer} profile={props.profile}> |
|
|
|
|
|
|
|
|
<Content sm={12} md={8} lg={9} item>{props.content}</Content> |
|
|
|
|
|
<RightCard sm={0} md={4} lg={3} item singleOffer={props.singleOffer} profile={props.profile}> |
|
|
{props.rightCard} |
|
|
{props.rightCard} |
|
|
</RightCard> |
|
|
</RightCard> |
|
|
</ContentRightCardContainer> |
|
|
</ContentRightCardContainer> |
|
|
|
|
|
|
|
|
rightCard: PropTypes.node, |
|
|
rightCard: PropTypes.node, |
|
|
singleOffer: PropTypes.bool, |
|
|
singleOffer: PropTypes.bool, |
|
|
profile: PropTypes.bool, |
|
|
profile: PropTypes.bool, |
|
|
|
|
|
isAdmin: PropTypes.bool, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
export default ProfileLayout; |
|
|
export default ProfileLayout; |