mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-18 23:46:04 +01:00
feat(wip): add dashboard
This commit is contained in:
21
src/components/Dash/DescriptionInput/index.tsx
Normal file
21
src/components/Dash/DescriptionInput/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { useData } from '../../../contexts/DataContext'
|
||||
|
||||
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
|
||||
}
|
||||
})
|
||||
}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user