CollectiveImage component fix

This commit is contained in:
tmshv committed 2019-10-15 01:22:46 +03:00
1 parent e20636b4f1
commit 0ff7d40cb2
1 file changed
+12 -15
+12 -15
View File
@@ -1,25 +1,22 @@
import React from 'react'
import Image from './Image'
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}
src={props.data.src}
alt={props.data.alt}
set={props.data.set}
opa={false}
style={{
marginBottom: 'var(--double-margin)',
}}
imgStyle={{
width: '100%',
borderRadius: '10px',
}}
/>
</div>
</div>
)