SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import styled from 'styled-components';
  3. import Header from './Header';
  4.  
  5. // STYLE-COMPONENTS
  6. // ===================================
  7. const AuthenticatedLayout = styled.div`
  8.   min-height: 100vh;
  9.   height: 100%;
  10.   max-width: 100%;
  11.   background-color: ${p => p.theme.colors.neutral10} !important;
  12. `;
  13.  
  14. // EXPORT
  15. // ===================================
  16. export default ({ children }) => (
  17.   <AuthenticatedLayout id="authenticated-layout">
  18.     <div>
  19.       <Header />
  20.       <div style={{ height: '100%' }}>{children}</div>
  21.     </div>
  22.   </AuthenticatedLayout>
  23. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top