mirror of
https://github.com/plankanban/planka.git
synced 2025-07-29 01:59:42 +02:00
Move from prettier-eslint to eslint-plugin-prettier, update dependencies
This commit is contained in:
parent
1f43d4f214
commit
45bde7e7c0
254 changed files with 5539 additions and 5170 deletions
|
@ -1,10 +1,10 @@
|
|||
import { useCallback, useState } from 'react';
|
||||
|
||||
export default (initialData) => {
|
||||
export default initialData => {
|
||||
const [data, setData] = useState(initialData);
|
||||
|
||||
const handleFieldChange = useCallback((_, { name: fieldName, value }) => {
|
||||
setData((prevData) => ({
|
||||
setData(prevData => ({
|
||||
...prevData,
|
||||
[fieldName]: value,
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue