orders page done

This commit is contained in:
suryacp23 2026-07-10 17:24:48 +05:30
parent 61d040d58e
commit 69be65f39f
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ export function OrderCard({ row, fields }: { row: Record<string, any>; fields: a
const userKey = Object.keys(row).find(k => k.includes('user_id') || k.includes('created_by'));
const userObj = userKey ? row[userKey] as Record<string, unknown> : null;
const userVal = formatValue(userObj?.name || userObj?.user_name || '—');
const userEmail = userObj?.email ? String(userObj.email) : '';
const dateVal = row.date_of_order ? formatValue(row.date_of_order) : '—';

View File

@ -1,5 +1,5 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { Search, ChevronRight } from 'lucide-react';
import { Search } from 'lucide-react';
import { cn } from '../../lib/cn';
import { formatValue } from '../../lib/format';
import type { ZinoClient } from '../../api/client';