Compare commits
No commits in common. "6b7a4028ce4b6f6e66fee833d726a914dca3b9f8" and "56184f2ebe76d480b91969531138fa9139bf687e" have entirely different histories.
6b7a4028ce
...
56184f2ebe
|
|
@ -22,6 +22,7 @@ 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);
|
||||
};
|
||||
|
|
@ -30,11 +31,12 @@ export default function Search({
|
|||
e.preventDefault();
|
||||
setCancel(false);
|
||||
if (changeValue !== undefined) {
|
||||
console.log(444);
|
||||
changeValue("");
|
||||
}
|
||||
Cancel(true);
|
||||
};
|
||||
|
||||
console.log(value);
|
||||
return (
|
||||
<form
|
||||
onSubmit={handleSubmit}
|
||||
|
|
|
|||
|
|
@ -126,11 +126,15 @@ export default function TabController() {
|
|||
}}
|
||||
>
|
||||
<SelectTrigger className="w-full h-12 bg-[#E9E9E9] " dir="rtl">
|
||||
<SelectValue placeholder="انتخاب دسته بندی" />
|
||||
<SelectValue>
|
||||
{dataState?.find((item:any) => item.value === selectedTab)
|
||||
?.title || "انتخاب دسته بندی"}
|
||||
</SelectValue>
|
||||
{/* <SelectValue placeholder="انتخاب دسته بندی" /> */}
|
||||
</SelectTrigger>
|
||||
<SelectContent dir="rtl">
|
||||
{dataState?.map((item: any) => (
|
||||
<SelectItem key={item.value} value={String(item.value)}>
|
||||
<SelectItem key={item.value} value={item.value}>
|
||||
{item.title} ({item.count})
|
||||
</SelectItem>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export default function TableController({
|
|||
<TableCell className="w-2/12">
|
||||
{convertFullTime(item.lastChanged)}
|
||||
</TableCell>
|
||||
<TableCell className="w-3/12 truncate max-w-[1em]">
|
||||
<TableCell className="w-3/12">
|
||||
{item?.title ? item.title : "-"}
|
||||
</TableCell>
|
||||
<TableCell className="w-3/12">
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ export async function UpdateWebContents({
|
|||
// .....News.................................................
|
||||
export async function GetAllNews({
|
||||
PageNumber = 1,
|
||||
PageSize = 6,
|
||||
PageSize = 5,
|
||||
}: {
|
||||
PageNumber?: number;
|
||||
PageSize?: number;
|
||||
|
|
|
|||
Loading…
Reference in New Issue