import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Cell } from 'react-mdl'; import StatefulTextfield from './stateful-textfield'; import icons from './icon-names'; import MySelect from '../common/select'; function ApplicationUpdate({ application, storeApplicationMetaData }) { const { appName, icon, url, description } = application; return ( ({ key: v, label: v }))} value={icon || 'apps'} onChange={e => storeApplicationMetaData(appName, 'icon', e.target.value)} filled /> storeApplicationMetaData(appName, 'url', e.target.value)} />
storeApplicationMetaData(appName, 'description', e.target.value)} />
); } ApplicationUpdate.propTypes = { application: PropTypes.object.isRequired, storeApplicationMetaData: PropTypes.func.isRequired, }; export default ApplicationUpdate;