add: otp status
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import {
|
import {
|
||||||
Bars3Icon,
|
Bars3Icon,
|
||||||
|
CheckBadgeIcon,
|
||||||
CubeIcon,
|
CubeIcon,
|
||||||
SparklesIcon,
|
SparklesIcon,
|
||||||
StopCircleIcon,
|
StopCircleIcon,
|
||||||
|
XCircleIcon,
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { useModalStore } from "../../context/zustand-store/appStore";
|
import { useModalStore } from "../../context/zustand-store/appStore";
|
||||||
import { useApiRequest } from "../../utils/useApiRequest";
|
import { useApiRequest } from "../../utils/useApiRequest";
|
||||||
@@ -221,6 +223,17 @@ export default function TagActiveDistributions() {
|
|||||||
تایید سند خروج
|
تایید سند خروج
|
||||||
</Button>
|
</Button>
|
||||||
),
|
),
|
||||||
|
item?.otp_status ? (
|
||||||
|
<span className="flex items-center gap-1 text-green-600 dark:text-green-400">
|
||||||
|
احراز شده
|
||||||
|
<CheckBadgeIcon className="w-5 h-5" />
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<span className="flex items-center gap-1 text-red-500 dark:text-red-400">
|
||||||
|
احراز نشده
|
||||||
|
<XCircleIcon className="w-5 h-5" />
|
||||||
|
</span>
|
||||||
|
),
|
||||||
<Popover key={index}>
|
<Popover key={index}>
|
||||||
<Tooltip title="جزئیات توزیع" position="right">
|
<Tooltip title="جزئیات توزیع" position="right">
|
||||||
<Button
|
<Button
|
||||||
@@ -390,6 +403,7 @@ export default function TagActiveDistributions() {
|
|||||||
...(showAssignDocColumn ? ["امضا سند خروج از انبار"] : []),
|
...(showAssignDocColumn ? ["امضا سند خروج از انبار"] : []),
|
||||||
"سند خروج از انبار",
|
"سند خروج از انبار",
|
||||||
"تایید سند خروج",
|
"تایید سند خروج",
|
||||||
|
"وضعیت احراز پیامکی",
|
||||||
"عملیات",
|
"عملیات",
|
||||||
]}
|
]}
|
||||||
rows={tagsTableData}
|
rows={tagsTableData}
|
||||||
|
|||||||
Reference in New Issue
Block a user