import React, { useState } from 'react'; import TextField from '@material-ui/core/TextField'; import t from './common/localization'; import EditItemView from './EditItemView'; import { Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography } from '@material-ui/core'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; const useStyles = makeStyles(() => ({ details: { flexDirection: 'column', }, })); const DevicePage = () => { const classes = useStyles(); const [item, setItem] = useState(); return ( item}> {item && <> }> {t('sharedRequired')} setItem({...item, name: event.target.value})} label={t('sharedName')} variant="filled" /> setItem({...item, uniqueId: event.target.value})} label={t('deviceIdentifier')} variant="filled" /> }> {t('sharedExtra')} setItem({...item, phone: event.target.value})} label={t('sharedPhone')} variant="filled" /> setItem({...item, model: event.target.value})} label={t('deviceModel')} variant="filled" /> setItem({...item, contact: event.target.value})} label={t('deviceContact')} variant="filled" /> } ); } export default DevicePage;