Skip to content

Commit

Permalink
just use prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
aulneau committed Sep 1, 2018
1 parent 1b85231 commit 4dc0b41
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 36 deletions.
4 changes: 2 additions & 2 deletions src/components/page/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from 'preact';
import {Box} from '@components/primitives';
import { Box } from '@components/primitives';

export const Page = (props) => <Box {...props} />
export const Page = (props) => <Box {...props} />;
58 changes: 29 additions & 29 deletions src/components/primitives/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,36 @@ import {
import styled from 'preact-emotion';

const Box = styled('div')`
${width};
${space};
${fontSize};
${letterSpacing};
${lineHeight};
${color};
${flex};
${order};
${alignSelf};
${opacity};
${display};
${position};
${zIndex};
${top};
${right};
${left};
${bottom};
${minHeight};
${borderRadius};
${maxHeight};
${maxWidth};
${minWidth};
${borders};
${order};
${flexWrap};
${flexDirection};
${alignItems};
${justifyContent};
${width};
${space};
${fontSize};
${letterSpacing};
${lineHeight};
${color};
${flex};
${order};
${alignSelf};
${opacity};
${display};
${position};
${zIndex};
${top};
${right};
${left};
${bottom};
${minHeight};
${borderRadius};
${maxHeight};
${maxWidth};
${minWidth};
${borders};
${order};
${flexWrap};
${flexDirection};
${alignItems};
${justifyContent};
`;
const Flex = styled(Box)`
display: flex;
display: flex;
`;
export { Box, Flex };
2 changes: 1 addition & 1 deletion src/components/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ const Root = (store) => (
</Provider>
);

export default Root
export default Root;
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ const init = async () => {
};

init();

8 changes: 5 additions & 3 deletions src/screens/home/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { h } from 'preact';
import { Page } from '@components/page';

const HomePage = () => (<Page>
<h1>Home</h1>
</Page>);
const HomePage = () => (
<Page>
<h1>Home</h1>
</Page>
);

export default HomePage;

0 comments on commit 4dc0b41

Please sign in to comment.