CollectiveImage refactoring
This commit is contained in:
1 parent
27bbdad7b1
commit
e76d55c0a7
5 files changed
+32
-19
No files matched your search
@@ -1,8 +0,0 @@
|
||||
const React = require('react')
|
||||
const Image = require('./Image')
|
||||
|
||||
module.exports = ({data}) => (
|
||||
<div className="CollectiveImage">
|
||||
<Image data={data}/>
|
||||
</div>
|
||||
)
|
||||
@@ -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>
|
||||
)
|
||||
Reference in new issue
Block a user