chore: fix types
This commit is contained in:
@@ -42,7 +42,7 @@ export default function List({
|
|||||||
|
|
||||||
const updateList = api.list.update.useMutation();
|
const updateList = api.list.update.useMutation();
|
||||||
|
|
||||||
const { register, handleSubmit, setValue } = useForm<FormValues>({
|
const { register, handleSubmit } = useForm<FormValues>({
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
listPublicId: list.publicId,
|
listPublicId: list.publicId,
|
||||||
name: list.name,
|
name: list.name,
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export default function LabelSelector({
|
|||||||
<div
|
<div
|
||||||
key={label.publicId}
|
key={label.publicId}
|
||||||
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
||||||
onClick={async () => {
|
onClick={() => {
|
||||||
const newValue = !watch(label.publicId);
|
const newValue = !watch(label.publicId);
|
||||||
setValue(label.publicId, newValue);
|
setValue(label.publicId, newValue);
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ export default function LabelSelector({
|
|||||||
labelPublicId: label.publicId,
|
labelPublicId: label.publicId,
|
||||||
});
|
});
|
||||||
|
|
||||||
handleSubmit(onSubmit)();
|
handleSubmit(onSubmit);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export default function ListSelector({
|
|||||||
<div
|
<div
|
||||||
key={list.publicId}
|
key={list.publicId}
|
||||||
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
||||||
onClick={async () => {
|
onClick={() => {
|
||||||
const newValue = !watch(list.publicId);
|
const newValue = !watch(list.publicId);
|
||||||
setValue(list.publicId, newValue);
|
setValue(list.publicId, newValue);
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ export default function ListSelector({
|
|||||||
newListId: list.publicId,
|
newListId: list.publicId,
|
||||||
});
|
});
|
||||||
|
|
||||||
handleSubmit(onSubmit)();
|
handleSubmit(onSubmit);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default function MemberSelector({
|
|||||||
<div
|
<div
|
||||||
key={member.publicId}
|
key={member.publicId}
|
||||||
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
className="flex items-center rounded-[5px] p-2 hover:bg-light-200 dark:hover:bg-dark-300"
|
||||||
onClick={async () => {
|
onClick={() => {
|
||||||
const newValue = !watch(member.publicId);
|
const newValue = !watch(member.publicId);
|
||||||
setValue(member.publicId, newValue);
|
setValue(member.publicId, newValue);
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ export default function MemberSelector({
|
|||||||
workspaceMemberPublicId: member.publicId,
|
workspaceMemberPublicId: member.publicId,
|
||||||
});
|
});
|
||||||
|
|
||||||
handleSubmit(onSubmit)();
|
handleSubmit(onSubmit);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
|||||||
Reference in New Issue
Block a user