Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Dashboard extends React.Component {
- render() {
- if (this.props.showPromotionLayout) {
- return (
- <PromotionLayout>
- <UserProfile />
- <PromotionSection />
- <SectionA />
- <SectionB />
- <RecommendationsSection />
- </PromotionLayout>
- );
- }
- else if (this.props.showPremiumUserLayout) {
- return (
- <PremiumUserLayout>
- <UserProfile />
- <PromotionSection />
- <SectionA />
- <SectionB />
- </PremiumUserLayout>
- );
- }
- else if (this.props.showABTestingLayout) {
- return (
- <ABTestingLayout>
- <UserProfile />
- <PromotionSection />
- <SectionA />
- <SectionB />
- </ABTestingLayout>
- );
- }
- else {
- return (
- <DefaultLayout>
- <UserProfile />
- <RecommendationsSection />
- <SectionA />
- <SectionB />
- </DefaultLayout>
- )
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement