Skip to content

Instantly share code, notes, and snippets.

@pashagray
Created October 6, 2017 09:10
Show Gist options
  • Save pashagray/26e61ce566cdf6c175cc224714c46cb3 to your computer and use it in GitHub Desktop.
Save pashagray/26e61ce566cdf6c175cc224714c46cb3 to your computer and use it in GitHub Desktop.
import React from 'react'
import Form from 'admin/components/Form'
class StudyGroupForm extends React.Component {
render() {
const schema = {
name: 'StudyGroup',
fields: [
{ name: 'level', placeholder: '1', required: true },
{ name: 'title', placeholder: 'A', required: true }
]
}
return(
<Form {...this.props} schema={schema} />
)
}
}
export default StudyGroupForm;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment