diff --git a/src/components/pages/marketing/MarketingTable.tsx b/src/components/pages/marketing/MarketingTable.tsx
index d1d5940a..bb6c5569 100644
--- a/src/components/pages/marketing/MarketingTable.tsx
+++ b/src/components/pages/marketing/MarketingTable.tsx
@@ -26,6 +26,8 @@ import { useRouter } from 'next/navigation';
import { useCallback, useState } from 'react';
import toast from 'react-hot-toast';
import useSWR from 'swr';
+import RequirePermission from '@/components/helper/RequirePermission';
+import { useAuth } from '@/services/hooks/useAuth';
const RowsOptionsMenu = ({
type = 'dropdown',
@@ -50,57 +52,71 @@ const RowsOptionsMenu = ({
)}
>
-
- {props.row.original.latest_approval.step_number != 1 && (
+
+
+ {props.row.original.latest_approval.step_number != 1 && (
+
+
+
)}
{props.row.original.latest_approval.step_number != 3 && (
-
+
+
+
)}
-
+
+
+
);
@@ -116,6 +132,7 @@ const MarketingTable = () => {
);
const [selectedItem, setSelectedItem] = useState(null);
const [rowSelection, setRowSelection] = useState>({});
+ const { permissionCheck } = useAuth();
const router = useRouter();
@@ -270,10 +287,14 @@ const MarketingTable = () => {
{
}}
/>
-
+
+
+
-
+
+
+
{initialValues?.latest_approval?.step_number == 1 && (
<>
-
-
+
+
+
+
+
+
+
>
)}
{initialValues?.latest_approval?.step_number != 1 && (
-
+
+
)}
@@ -413,19 +427,23 @@ const MarketingDetail = ({
)}
{initialValues?.latest_approval?.step_number != 3 && (
-
+
+
+
)}
-
+
+
+
-
+
+
+
)}