joyent-portal/ui/src/components/list/view.js

21 lines
377 B
JavaScript
Raw Normal View History

2017-01-09 14:13:12 +02:00
const Collapsed = require('./collapsed');
const React = require('react');
const Row = require('../row');
const Styled = require('styled-components');
const {
default: styled
} = Styled;
const View = styled(Row)`
flex: 1;
margin: 0;
height: 100%;
`;
module.exports = Collapsed((props) => (
<View name='list-item-view' {...props}>
{props.children}
</View>
));