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 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);
|
||||||
};
|
};
|
||||||
|
|
@ -30,11 +31,12 @@ 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}
|
||||||
|
|
|
||||||
|
|
@ -126,11 +126,15 @@ 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 placeholder="انتخاب دسته بندی" />
|
<SelectValue>
|
||||||
|
{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={String(item.value)}>
|
<SelectItem key={item.value} value={item.value}>
|
||||||
{item.title} ({item.count})
|
{item.title} ({item.count})
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -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 truncate max-w-[1em]">
|
<TableCell className="w-3/12">
|
||||||
{item?.title ? item.title : "-"}
|
{item?.title ? item.title : "-"}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="w-3/12">
|
<TableCell className="w-3/12">
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ export async function UpdateWebContents({
|
||||||
// .....News.................................................
|
// .....News.................................................
|
||||||
export async function GetAllNews({
|
export async function GetAllNews({
|
||||||
PageNumber = 1,
|
PageNumber = 1,
|
||||||
PageSize = 6,
|
PageSize = 5,
|
||||||
}: {
|
}: {
|
||||||
PageNumber?: number;
|
PageNumber?: number;
|
||||||
PageSize?: number;
|
PageSize?: number;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue