Files
link-free/src/components/Dash/DescriptionInput/index.tsx

22 lines
434 B
TypeScript
Raw Normal View History

2021-12-13 17:12:51 -03:00
import { useData } from '../../../hooks/useData'
2021-12-13 00:36:38 -03:00
export function DescriptionInput() {
const { data, setData } = useData()
return (
<textarea
style={{ height: '200px', width: '100%' }}
value={data.settings.description}
onChange={e =>
setData({
...data,
settings: {
...data.settings,
description: e.target.value
}
})
}
/>
)
}