Compare commits

...

2 Commits

Author SHA1 Message Date
yasaman 6b7a4028ce bug fixed 2024-02-01 14:33:24 +03:30
yasaman 2d10412137 a bug fixed 2024-02-01 14:24:21 +03:30
4 changed files with 5 additions and 11 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

@ -126,15 +126,11 @@ export default function TabController() {
}} }}
> >
<SelectTrigger className="w-full h-12 bg-[#E9E9E9] " dir="rtl"> <SelectTrigger className="w-full h-12 bg-[#E9E9E9] " dir="rtl">
<SelectValue> <SelectValue placeholder="انتخاب دسته بندی" />
{dataState?.find((item:any) => item.value === selectedTab)
?.title || "انتخاب دسته بندی"}
</SelectValue>
{/* <SelectValue placeholder="انتخاب دسته بندی" /> */}
</SelectTrigger> </SelectTrigger>
<SelectContent dir="rtl"> <SelectContent dir="rtl">
{dataState?.map((item: any) => ( {dataState?.map((item: any) => (
<SelectItem key={item.value} value={item.value}> <SelectItem key={item.value} value={String(item.value)}>
{item.title} ({item.count}) {item.title} ({item.count})
</SelectItem> </SelectItem>
))} ))}

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;