Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
coma committed Jan 15, 2019
1 parent fd16f8e commit 1444349
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/components/Empty.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import React from 'react';
import { rgba } from 'polished';
import PropTypes from 'prop-types';
import styled from 'styled-components';

const Empty = ({ className }) => <div className={className} />;

Empty.defaultProps = {
className: '',
};

Empty.propTypes = {
className: PropTypes.string,
};

export default styled(Empty)`
const Wrapper = styled.div`
@media (${props => props.theme['--screen-medium']}) {
background: ${props => props.theme['--color-light']};
border-left: 1px solid ${props => rgba(props.theme['--color-dark'], 0.1)};
Expand All @@ -24,3 +13,9 @@ export default styled(Empty)`
width: calc(100% - 32rem);
}
`;

function Empty() {
return <Wrapper />;
}

export default Empty;

0 comments on commit 1444349

Please sign in to comment.