This commit is contained in:
2026-07-14 21:04:39 +03:30
parent 9aed33d73b
commit fa83d7d092
13 changed files with 116 additions and 228 deletions
@@ -1,4 +1,4 @@
import { Edit, Eye, Lock1 } from "iconsax-react";
import { Eye, Lock1 } from "iconsax-react";
import type { ColumnType } from "@/components/types/TableTypes";
import type { CashShift } from "../types/Types";
import {
@@ -13,7 +13,6 @@ import type { TFunction } from "i18next";
interface GetCashShiftTableColumnsParams {
t: TFunction;
onView: (shift: CashShift) => void;
onEdit?: (shift: CashShift) => void;
onClose?: (shift: CashShift) => void;
}
@@ -27,7 +26,6 @@ const getAdminName = (shift: CashShift) => {
export const getCashShiftTableColumns = ({
t,
onView,
onEdit,
onClose,
}: GetCashShiftTableColumnsParams): ColumnType<CashShift>[] => [
{
@@ -112,15 +110,6 @@ export const getCashShiftTableColumns = ({
>
<Eye size={20} color="#8C90A3" />
</button>
{onEdit && (
<button
onClick={() => onEdit(item)}
className="cursor-pointer hover:opacity-70 transition-opacity"
title={t("cash_shift.edit_shift")}
>
<Edit size={20} color="#8C90A3" />
</button>
)}
{item.status === CashShiftStatus.OPEN && onClose && (
<button
onClick={() => onClose(item)}