Skip to content

Commit

Permalink
[fix] Broken figure component
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Mar 13, 2015
1 parent 1f6dd84 commit 1bb3a12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ars-arsenal",
"version": "0.2.0",
"version": "0.2.1",
"description": "A gallery picker",
"main": "build/js/ars-arsenal.js",
"scripts": {
Expand Down
9 changes: 4 additions & 5 deletions src/components/figure.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
* An individual gallery tile
*/

import React from 'react'
import Image from './ui/image'

let Types = React.PropTypes
let cx = require('classnames')

let Figure = React.createClass({

propTypes: {
record : Types.object.isRequired,
onClick : Types.func.isRequired,
picked : Types.bool
record : React.PropTypes.object.isRequired,
onClick : React.PropTypes.func.isRequired,
picked : React.PropTypes.bool
},

render() {
Expand All @@ -27,7 +27,6 @@ let Figure = React.createClass({
return (
<button className={ className } onClick={ this._onClick }>
<Image className="ars-fig-img" src={ record.url } />

<span className="ars-fig-caption">
{ record.caption }
</span>
Expand Down

0 comments on commit 1bb3a12

Please sign in to comment.