-
{props.isExpanded ? : }
+
+
)
}
diff --git a/src/components/borrow/Table/Columns/useAvailableColumns.tsx b/src/components/borrow/Table/Columns/useAvailableColumns.tsx
index 16eb04d1..9cc2bd8e 100644
--- a/src/components/borrow/Table/Columns/useAvailableColumns.tsx
+++ b/src/components/borrow/Table/Columns/useAvailableColumns.tsx
@@ -1,12 +1,13 @@
import { ColumnDef } from '@tanstack/react-table'
import { useMemo } from 'react'
+import BorrowButton, { BORROW_BUTTON_META } from 'components/borrow/Table/Columns/BorrowButton'
import BorrowRate, { BORROW_RATE_META } from 'components/borrow/Table/Columns/BorrowRate'
+import Chevron, { CHEVRON_META } from 'components/borrow/Table/Columns/Chevron'
import Liquidity, {
LIQUIDITY_META,
liquiditySortingFn,
} from 'components/borrow/Table/Columns/Liquidity'
-import Manage, { MANAGE_META } from 'components/borrow/Table/Columns/Manage'
import Name, { NAME_META } from 'components/borrow/Table/Columns/Name'
export default function useAvailableColumns() {
@@ -26,8 +27,12 @@ export default function useAvailableColumns() {
sortingFn: liquiditySortingFn,
},
{
- ...MANAGE_META,
- cell: ({ row }) =>
,
+ ...BORROW_BUTTON_META,
+ cell: ({ row }) =>
,
+ },
+ {
+ ...CHEVRON_META,
+ cell: ({ row }) =>
,
},
]
}, [])
diff --git a/src/components/borrow/Table/Columns/useDepositedColumns.tsx b/src/components/borrow/Table/Columns/useDepositedColumns.tsx
index fa657241..4c311786 100644
--- a/src/components/borrow/Table/Columns/useDepositedColumns.tsx
+++ b/src/components/borrow/Table/Columns/useDepositedColumns.tsx
@@ -2,6 +2,7 @@ import { ColumnDef } from '@tanstack/react-table'
import { useMemo } from 'react'
import BorrowRate, { BORROW_RATE_META } from 'components/borrow/Table/Columns/BorrowRate'
+import Chevron, { CHEVRON_META } from 'components/borrow/Table/Columns/Chevron'
import Debt, { DEBT_META, debtSortingFn } from 'components/borrow/Table/Columns/Debt'
import Liquidity, {
LIQUIDITY_META,
@@ -33,7 +34,11 @@ export default function useDepositedColumns() {
},
{
...MANAGE_META,
- cell: ({ row }) =>
,
+ cell: ({ row }) =>
,
+ },
+ {
+ ...CHEVRON_META,
+ cell: ({ row }) =>
,
},
]
}, [])
diff --git a/src/components/borrow/Table/DepositedBorrowingsTable.tsx b/src/components/borrow/Table/DepositedBorrowingsTable.tsx
index 85b6fa96..8eaf08da 100644
--- a/src/components/borrow/Table/DepositedBorrowingsTable.tsx
+++ b/src/components/borrow/Table/DepositedBorrowingsTable.tsx
@@ -1,12 +1,10 @@
import { Row } from '@tanstack/react-table'
import { useCallback } from 'react'
-import BorrowActionButtons from 'components/borrow/BorrowActionButtons'
import { NAME_META } from 'components/borrow/Table/Columns/Name'
import useDepositedColumns from 'components/borrow/Table/Columns/useDepositedColumns'
import MarketDetails from 'components/common/MarketDetails'
import Table from 'components/common/Table'
-import ActionButtonRow from 'components/common/Table/ActionButtonRow'
type Props = {
data: BorrowMarketTableData[]
@@ -17,15 +15,7 @@ export default function DepositedBorrowingsTable(props: Props) {
const columns = useDepositedColumns()
const renderExpanded = useCallback((row: Row
) => {
- const currentRow = row as Row
- return (
- <>
-
-
-
-
- >
- )
+ return
}, [])
if (!props.data.length) return null
diff --git a/src/components/common/Button/DropDownButton.tsx b/src/components/common/Button/DropDownButton.tsx
index 6b54572e..afc754c7 100644
--- a/src/components/common/Button/DropDownButton.tsx
+++ b/src/components/common/Button/DropDownButton.tsx
@@ -1,12 +1,16 @@
+import classNames from 'classnames'
+
import Button from 'components/common/Button/index'
import { ChevronDown } from 'components/common/Icons'
import Text from 'components/common/Text'
import { Tooltip } from 'components/common/Tooltip'
+import ConditionalWrapper from 'hocs/ConditionalWrapper'
import useToggle from 'hooks/useToggle'
interface Props extends ButtonProps {
items: DropDownItem[]
text: string
+ showProgressIndicator?: boolean
}
export default function DropDownButton(props: Props) {
@@ -16,16 +20,20 @@ export default function DropDownButton(props: Props) {
content={ toggleIsOpen(false)} {...props} />}
type='info'
placement='bottom'
- contentClassName='!bg-white/10 backdrop-blur-xl !p-0'
+ contentClassName='!bg-white/10 backdrop-blur-xl !p-0 w-full min-w-[140px]'
interactive
hideArrow
visible={isOpen}
onClickOutside={() => toggleIsOpen(false)}
>