Skip to content

Commit

Permalink
refactor(index-glamorous): remove Div from Layout
Browse files Browse the repository at this point in the history
Removed Div and replaced with regular div

re dsmjs#571
  • Loading branch information
micleners committed Nov 14, 2019
1 parent 517487f commit 7a8ef7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/organisms/layout/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import React from 'react';
import {string, node} from 'prop-types';
import {Div} from 'glamorous';
import Header from '../../molecules/header';
import Footer from '../footer';
import {fontFamily, fontSize} from '../../styles';
import layoutStyles from '../../layoutStyles.json';

export default function Layout({sponsor, location, children}) {
return (
<Div css={{fontFamily, fontSize, maxWidth: 1000, margin: '1em auto', backgroundColor: '#fff'}}>
<div css={{fontFamily, fontSize, maxWidth: 1000, margin: '1em auto', backgroundColor: '#fff'}}>
<Header sponsor={sponsor} location={location} />
<div css={{padding: `0 ${layoutStyles.innerGutterWidth}px`}}>
{children}
</div>
<Footer />
</Div>
</div>
);
}

Expand Down

0 comments on commit 7a8ef7f

Please sign in to comment.