mirror of
https://github.com/plankanban/planka.git
synced 2025-07-28 01:29:44 +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
|
@ -3,6 +3,4 @@ import useForm from './use-form';
|
|||
import useSteps from './use-steps';
|
||||
import useClosableForm from './use-closable-form';
|
||||
|
||||
export {
|
||||
useField, useForm, useSteps, useClosableForm,
|
||||
};
|
||||
export { useField, useForm, useSteps, useClosableForm };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useCallback, useState } from 'react';
|
||||
|
||||
export default (initialValue) => {
|
||||
export default initialValue => {
|
||||
const [value, setValue] = useState(initialValue);
|
||||
|
||||
const handleChange = useCallback((_, { value: nextValue }) => {
|
||||
|
|
|
@ -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