chore: fix types
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user