|
|
@ -16,7 +16,7 @@ const useChecklist = ({ |
|
|
|
hasAllChecks: boolean; |
|
|
|
hasAllChecks: boolean; |
|
|
|
hasChecks: boolean; |
|
|
|
hasChecks: boolean; |
|
|
|
multipleItems: boolean; |
|
|
|
multipleItems: boolean; |
|
|
|
resetChecklist: () => void; |
|
|
|
resetChecks: () => void; |
|
|
|
setAllChecks: SetAllChecksFunction; |
|
|
|
setAllChecks: SetAllChecksFunction; |
|
|
|
setCheck: SetCheckFunction; |
|
|
|
setCheck: SetCheckFunction; |
|
|
|
} => { |
|
|
|
} => { |
|
|
@ -62,7 +62,7 @@ const useChecklist = ({ |
|
|
|
[checklist], |
|
|
|
[checklist], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const resetChecklist = useCallback(() => setChecklist({}), []); |
|
|
|
const resetChecks = useCallback(() => setChecklist({}), []); |
|
|
|
|
|
|
|
|
|
|
|
const setAllChecks = useCallback<SetAllChecksFunction>( |
|
|
|
const setAllChecks = useCallback<SetAllChecksFunction>( |
|
|
|
(checked) => |
|
|
|
(checked) => |
|
|
@ -92,7 +92,7 @@ const useChecklist = ({ |
|
|
|
hasAllChecks, |
|
|
|
hasAllChecks, |
|
|
|
hasChecks, |
|
|
|
hasChecks, |
|
|
|
multipleItems, |
|
|
|
multipleItems, |
|
|
|
resetChecklist, |
|
|
|
resetChecks, |
|
|
|
setAllChecks, |
|
|
|
setAllChecks, |
|
|
|
setCheck, |
|
|
|
setCheck, |
|
|
|
}; |
|
|
|
}; |
|
|
|