initiatived21/d21

View on GitHub
client/app/Inputs/wrappers/ImageInputWrapper.js

Summary

Maintainability
A
1 hr
Test Coverage
import React, { Component, PropTypes } from 'react'
import ImageInput from '../containers/ImageInput'

export default class ImageInputWrapper extends Component {
  static contextTypes = {
    model: PropTypes.string,
    formId: PropTypes.string,
    formObjectClass: PropTypes.func,
  }

  render() {
    return <ImageInput {...this.props} {...this.context} />
  }
}