ui fix
This commit is contained in:
@@ -151,6 +151,20 @@ export function SalesClient() {
|
||||
fields: [{ key: 'storeName', primary: true }],
|
||||
minWidth: 180,
|
||||
},
|
||||
{
|
||||
key: 'storeDetails',
|
||||
title: 'Store Contact',
|
||||
fields: ['storeAddress', 'storeContactNumber'],
|
||||
minWidth: 200,
|
||||
cellRender: (row) => (
|
||||
<div className="flex flex-col">
|
||||
<span className="text-sm">{row.storeAddress ?? '—'}</span>
|
||||
{row.storeContactNumber && (
|
||||
<span className="text-xs text-muted-foreground">{row.storeContactNumber}</span>
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'totalAmount',
|
||||
title: 'Total',
|
||||
@@ -172,7 +186,7 @@ export function SalesClient() {
|
||||
{
|
||||
key: 'createdBy',
|
||||
title: 'Created By',
|
||||
fields: ['raisedByName'],
|
||||
fields: ['raisedByName', 'createdAt'],
|
||||
minWidth: 160,
|
||||
cellRender: (row) => (
|
||||
<div className="flex flex-col">
|
||||
@@ -180,6 +194,7 @@ export function SalesClient() {
|
||||
{row.raisedByRole && (
|
||||
<span className="text-xs text-muted-foreground">{row.raisedByRole}</span>
|
||||
)}
|
||||
<span className="text-xs text-muted-foreground">{fmtDate(row.createdAt)}</span>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
@@ -221,12 +236,6 @@ export function SalesClient() {
|
||||
<span className="text-sm text-muted-foreground">—</span>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: 'createdAt',
|
||||
title: 'Created',
|
||||
fields: [{ key: 'createdAt', transform: (v) => fmtDate(v as string) }],
|
||||
width: 140,
|
||||
},
|
||||
],
|
||||
rowActions: {
|
||||
actions: () => [
|
||||
|
||||
Reference in New Issue
Block a user