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

View File

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

View File

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

View File

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