fix
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
Textarea,
|
||||
Modal,
|
||||
PageHeader,
|
||||
Switch,
|
||||
} from "@/components/ui";
|
||||
import { EditIcon, EyeIcon, PlusIcon, TrashIcon } from "@/components/icons";
|
||||
import { MediaPreview } from "@/components/MediaPreview";
|
||||
@@ -148,7 +147,7 @@ export default function CategoriesPage() {
|
||||
});
|
||||
toast.success(
|
||||
row.is_deeplink_only
|
||||
? "به فهرست عادی بازگشت."
|
||||
? "به فهرست عادی بازگردانده شد."
|
||||
: "به لینک مستقیم تبدیل شد.",
|
||||
);
|
||||
reload();
|
||||
@@ -237,11 +236,15 @@ export default function CategoriesPage() {
|
||||
subtitle="مدیریت دستهبندیهای عمومی رسانه، پلیلیست و قالب تنفس"
|
||||
action={
|
||||
<div className="flex items-center gap-3">
|
||||
<Switch
|
||||
checked={showDeepLinks}
|
||||
onChange={setShowDeepLinks}
|
||||
label="فقط لینکهای مستقیم"
|
||||
/>
|
||||
<Select
|
||||
value={showDeepLinks ? "deeplink" : "normal"}
|
||||
onChange={(e) => setShowDeepLinks(e.target.value === "deeplink")}
|
||||
aria-label="نمایش"
|
||||
className="w-44"
|
||||
>
|
||||
<option value="normal">دستهبندیهای عادی</option>
|
||||
<option value="deeplink">لینکهای مستقیم</option>
|
||||
</Select>
|
||||
<Select
|
||||
value={typeFilter}
|
||||
onChange={(e) => setTypeFilter(e.target.value as CategoryType)}
|
||||
|
||||
Reference in New Issue
Block a user