Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. export class Dashboard extends React.Component {
  2. render() {
  3. if (this.props.showPromotionLayout) {
  4. return (
  5. <PromotionLayout>
  6. <UserProfile />
  7. <PromotionSection />
  8. <SectionA />
  9. <SectionB />
  10. <RecommendationsSection />
  11. </PromotionLayout>
  12. );
  13. }
  14. else if (this.props.showPremiumUserLayout) {
  15. return (
  16. <PremiumUserLayout>
  17. <UserProfile />
  18. <PromotionSection />
  19. <SectionA />
  20. <SectionB />
  21. </PremiumUserLayout>
  22. );
  23. }
  24. else if (this.props.showABTestingLayout) {
  25. return (
  26. <ABTestingLayout>
  27. <UserProfile />
  28. <PromotionSection />
  29. <SectionA />
  30. <SectionB />
  31. </ABTestingLayout>
  32. );
  33. }
  34. else {
  35. return (
  36. <DefaultLayout>
  37. <UserProfile />
  38. <RecommendationsSection />
  39. <SectionA />
  40. <SectionB />
  41. </DefaultLayout>
  42. )
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement