Skip to content

Commit

Permalink
search result cards cleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolinowski committed Nov 3, 2017
1 parent 926c274 commit 9841b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
24 changes: 3 additions & 21 deletions src/components/ResultCards.jsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
import React from 'react'
import Link from 'gatsby-link'

import { withStyles } from 'material-ui/styles'
import Card, { CardActions, CardContent, CardMedia } from 'material-ui/Card'
import Button from 'material-ui/Button'
import Typography from 'material-ui/Typography'
import Grid from 'material-ui/Grid'

const cardStyle = {
maxWidth: 345,
}

const mediaStyle = {
height: 200,
}

const styles = theme => ({
cardStyle: {
maxWidth: 345,
},
mediaStyle: {
height: 200,
}
});

const ResultCards = ({image, title, abstract, link}) => (

<Grid item xs={12} sm={6} lg={4}>
<Card className={cardStyle}>
<Card style={{ maxWidth: 345 }}>
<CardMedia
className={mediaStyle}
style={{ height: 200 }}
image={image}
title={abstract}
/>
Expand All @@ -55,4 +37,4 @@ const ResultCards = ({image, title, abstract, link}) => (
</Grid>
)

export default withStyles(styles)(ResultCards);
export default ResultCards
1 change: 0 additions & 1 deletion src/pages/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Link from 'gatsby-link'
import elasticsearch from 'elasticsearch'

import { withStyles } from 'material-ui/styles'
import Card, { CardActions, CardContent, CardMedia } from 'material-ui/Card'
import Grid from 'material-ui/Grid'
import Button from 'material-ui/Button'

Expand Down

0 comments on commit 9841b8f

Please sign in to comment.