CollectiveImage refactoring

This commit is contained in:
tmshv committed 2019-08-05 15:35:28 +03:00
1 parent 27bbdad7b1
commit e76d55c0a7
5 files changed
+32 -19

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
const React = require('react')
const Image = require('./Image')
module.exports = ({data}) => (
<div className="CollectiveImage">
<Image data={data}/>
</div>
)
+25
View File
@@ -0,0 +1,25 @@
import React from 'react'
import Image from './Image'
export const CollectiveImage = (props) => (
<div
className="CollectiveImage"
style={props.style}
>
<style jsx>{`
.CollectiveImage {
margin - bottom: var(--double-margin);
}
img {
width: 100%;
border-radius: 10px;
}
`}</style>
<Image
data={props.data}
opa={false}
/>
</div>
)