mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Fixed a Small Error and Updated/Added Tests
This commit is contained in:
parent
4f205d7584
commit
3a095e2096
9 changed files with 105 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import { toast } from 'sonner';
|
||||
import { useRef, useState } from 'react';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { Board } from '@prisma/client';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
@ -25,7 +25,11 @@ export const BoardTitleForm = ({ data }: BoardTitleFormProps) => {
|
|||
},
|
||||
});
|
||||
|
||||
const formRef = useRef<HTMLFormElement>(document.createElement('form'));
|
||||
const formRef = useRef<HTMLFormElement>(null);
|
||||
useEffect(() => {
|
||||
formRef.current = document.createElement('form');
|
||||
}, []);
|
||||
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
const [title, setTitle] = useState(data.title);
|
||||
|
|
|
@ -35,6 +35,7 @@ const BoardIdPage = async (props: BoardIdPageProps) => {
|
|||
orderBy: {
|
||||
order: 'asc',
|
||||
},
|
||||
cacheStrategy: { ttl: 30, swr: 60 },
|
||||
});
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue