chore: fix types

This commit is contained in:
Henry
2024-08-24 07:28:25 +01:00
parent 8c6e50ed2f
commit f53549ecdd
4 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ export default function List({
const updateList = api.list.update.useMutation();
const { register, handleSubmit, setValue } = useForm<FormValues>({
const { register, handleSubmit } = useForm<FormValues>({
defaultValues: {
listPublicId: list.publicId,
name: list.name,

View File

@@ -104,7 +104,7 @@ export default function LabelSelector({
<div
key={label.publicId}
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);
setValue(label.publicId, newValue);
@@ -113,7 +113,7 @@ export default function LabelSelector({
labelPublicId: label.publicId,
});
handleSubmit(onSubmit)();
handleSubmit(onSubmit);
}}
>
<input

View File

@@ -73,7 +73,7 @@ export default function ListSelector({
<div
key={list.publicId}
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);
setValue(list.publicId, newValue);
@@ -82,7 +82,7 @@ export default function ListSelector({
newListId: list.publicId,
});
handleSubmit(onSubmit)();
handleSubmit(onSubmit);
}}
>
<input

View File

@@ -100,7 +100,7 @@ export default function MemberSelector({
<div
key={member.publicId}
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);
setValue(member.publicId, newValue);
@@ -109,7 +109,7 @@ export default function MemberSelector({
workspaceMemberPublicId: member.publicId,
});
handleSubmit(onSubmit)();
handleSubmit(onSubmit);
}}
>
<input