Compare commits
11 Commits
main
...
lend-table
Author | SHA1 | Date | |
---|---|---|---|
|
fc9fcf13fc | ||
|
5846e893d1 | ||
|
e3b5e330ee | ||
|
7eac8e7a35 | ||
|
af478c56d5 | ||
|
a6f4c24f15 | ||
|
6946ceddfc | ||
|
0154065ffb | ||
|
4f64234a75 | ||
|
26f1ef4a2c | ||
|
3f28ccd09c |
@ -48,7 +48,7 @@ export default function Manage(props: Props) {
|
|||||||
if (!address) return null
|
if (!address) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex justify-end z-10'>
|
<div className='z-10 flex justify-end'>
|
||||||
<DropDownButton items={ITEMS} text='Manage' color='tertiary' />
|
<DropDownButton items={ITEMS} text='Manage' color='tertiary' />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -66,7 +66,7 @@ export default function Row<T>(props: Props<T>) {
|
|||||||
spacingClassName ?? 'px-3 py-4',
|
spacingClassName ?? 'px-3 py-4',
|
||||||
type && type !== 'strategies' && isSymbolOrName && 'border-l',
|
type && type !== 'strategies' && isSymbolOrName && 'border-l',
|
||||||
type && type !== 'strategies' && getBorderColor(type, cell.row.original as any),
|
type && type !== 'strategies' && getBorderColor(type, cell.row.original as any),
|
||||||
cell.column.columnDef.meta?.className ?? 'w-min',
|
cell.column.columnDef.meta?.className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{flexRender(cell.column.columnDef.cell, cell.getContext())}
|
{flexRender(cell.column.columnDef.cell, cell.getContext())}
|
||||||
|
@ -76,7 +76,6 @@ export default function Table<T>(props: Props<T>) {
|
|||||||
props.spacingClassName ?? 'px-4 py-3',
|
props.spacingClassName ?? 'px-4 py-3',
|
||||||
header.column.getCanSort() && 'hover:cursor-pointer',
|
header.column.getCanSort() && 'hover:cursor-pointer',
|
||||||
header.id === 'symbol' || header.id === 'name' ? 'text-left' : 'text-right',
|
header.id === 'symbol' || header.id === 'name' ? 'text-left' : 'text-right',
|
||||||
'w-min',
|
|
||||||
header.column.columnDef.meta?.className,
|
header.column.columnDef.meta?.className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
@ -10,6 +10,9 @@ export const DEPOSIT_CAP_META = {
|
|||||||
accessorKey: 'marketDepositCap',
|
accessorKey: 'marketDepositCap',
|
||||||
header: 'Deposit Cap',
|
header: 'Deposit Cap',
|
||||||
id: 'marketDepositCap',
|
id: 'marketDepositCap',
|
||||||
|
meta: {
|
||||||
|
className: 'w-50',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const marketDepositCapSortingFn = (
|
export const marketDepositCapSortingFn = (
|
||||||
|
@ -13,6 +13,9 @@ export const LEND_BUTTON_META = {
|
|||||||
accessorKey: 'lend',
|
accessorKey: 'lend',
|
||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
header: '',
|
header: '',
|
||||||
|
meta: {
|
||||||
|
className: 'w-40',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
@ -13,6 +13,9 @@ export const MANAGE_META = {
|
|||||||
accessorKey: 'manage',
|
accessorKey: 'manage',
|
||||||
enableSorting: false,
|
enableSorting: false,
|
||||||
header: '',
|
header: '',
|
||||||
|
meta: {
|
||||||
|
className: 'w-40',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@ -75,7 +78,7 @@ export default function Manage(props: Props) {
|
|||||||
if (!address) return null
|
if (!address) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex justify-end z-10'>
|
<div className='z-10 flex justify-end'>
|
||||||
<DropDownButton items={ITEMS} text='Manage' color='tertiary' />
|
<DropDownButton items={ITEMS} text='Manage' color='tertiary' />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user