Guest User

Untitled

a guest
Feb 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. //@flow
  2. import React from "react";
  3. import styled from "styled-components";
  4.  
  5. import "App.css";
  6.  
  7. const Background = styled.div`
  8. height: 100vh;
  9. `;
  10.  
  11. type Props = {
  12. children?: React$Node,
  13. wallpaper: string,
  14. };
  15.  
  16. export default class extends React.PureComponent<Props> {
  17. render() {
  18. return (
  19. <Background className={this.props.wallpaper}>
  20. {this.props.children}
  21. </Background>
  22. );
  23. }
  24. }
Add Comment
Please, Sign In to add comment