CollectiveImage component fix
This commit is contained in:
1 parent
e20636b4f1
commit
0ff7d40cb2
1 file changed
+12
-15
@@ -1,25 +1,22 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Image from './Image'
|
import { Image } from './Image'
|
||||||
|
|
||||||
export const CollectiveImage = (props) => (
|
export const CollectiveImage = (props) => (
|
||||||
<div
|
<div
|
||||||
className="CollectiveImage"
|
|
||||||
style={props.style}
|
style={props.style}
|
||||||
>
|
>
|
||||||
<style jsx>{`
|
|
||||||
.CollectiveImage {
|
|
||||||
margin - bottom: var(--double-margin);
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 100%;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
`}</style>
|
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
data={props.data}
|
src={props.data.src}
|
||||||
|
alt={props.data.alt}
|
||||||
|
set={props.data.set}
|
||||||
opa={false}
|
opa={false}
|
||||||
|
style={{
|
||||||
|
marginBottom: 'var(--double-margin)',
|
||||||
|
}}
|
||||||
|
imgStyle={{
|
||||||
|
width: '100%',
|
||||||
|
borderRadius: '10px',
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user