a bug fixed

Kahdooie
yasaman 2024-02-01 14:24:21 +03:30
parent 56184f2ebe
commit 2d10412137
3 changed files with 3 additions and 5 deletions

View File

@ -22,7 +22,6 @@ export default function Search({
const inputRef = useRef<HTMLInputElement>(null); const inputRef = useRef<HTMLInputElement>(null);
const [cancel, setCancel] = useState<boolean>(false); const [cancel, setCancel] = useState<boolean>(false);
const handleSubmit = (e: any) => { const handleSubmit = (e: any) => {
console.log(222);
e.preventDefault(); e.preventDefault();
setCancel(true); setCancel(true);
}; };
@ -31,12 +30,11 @@ export default function Search({
e.preventDefault(); e.preventDefault();
setCancel(false); setCancel(false);
if (changeValue !== undefined) { if (changeValue !== undefined) {
console.log(444);
changeValue(""); changeValue("");
} }
Cancel(true); Cancel(true);
}; };
console.log(value);
return ( return (
<form <form
onSubmit={handleSubmit} onSubmit={handleSubmit}

View File

@ -102,7 +102,7 @@ export default function TableController({
<TableCell className="w-2/12"> <TableCell className="w-2/12">
{convertFullTime(item.lastChanged)} {convertFullTime(item.lastChanged)}
</TableCell> </TableCell>
<TableCell className="w-3/12"> <TableCell className="w-3/12 truncate max-w-[1em]">
{item?.title ? item.title : "-"} {item?.title ? item.title : "-"}
</TableCell> </TableCell>
<TableCell className="w-3/12"> <TableCell className="w-3/12">

View File

@ -162,7 +162,7 @@ export async function UpdateWebContents({
// .....News................................................. // .....News.................................................
export async function GetAllNews({ export async function GetAllNews({
PageNumber = 1, PageNumber = 1,
PageSize = 5, PageSize = 6,
}: { }: {
PageNumber?: number; PageNumber?: number;
PageSize?: number; PageSize?: number;