orders page done
This commit is contained in:
parent
61d040d58e
commit
69be65f39f
@ -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 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 userObj = userKey ? row[userKey] as Record<string, unknown> : null;
|
||||||
const userVal = formatValue(userObj?.name || userObj?.user_name || '—');
|
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) : '—';
|
const dateVal = row.date_of_order ? formatValue(row.date_of_order) : '—';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { Search, ChevronRight } from 'lucide-react';
|
import { Search } from 'lucide-react';
|
||||||
import { cn } from '../../lib/cn';
|
import { cn } from '../../lib/cn';
|
||||||
import { formatValue } from '../../lib/format';
|
import { formatValue } from '../../lib/format';
|
||||||
import type { ZinoClient } from '../../api/client';
|
import type { ZinoClient } from '../../api/client';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user