fix type issue with new ExpandableRow props
This commit is contained in:
parent
b6999cd220
commit
c41af04f8e
|
@ -508,7 +508,6 @@ const BalancesTable = ({
|
|||
</div>
|
||||
}
|
||||
key={`${balance.symbol}${index}`}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<>
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4 pb-4">
|
||||
|
|
|
@ -278,7 +278,6 @@ const PositionsTable = () => {
|
|||
</>
|
||||
}
|
||||
key={`${index}`}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4">
|
||||
<div className="col-span-1 text-left">
|
||||
|
|
|
@ -97,7 +97,6 @@ export default function RecentMarketTrades() {
|
|||
<div className="mb-0.5 text-fgd-1">{t('recent-trades')}</div>
|
||||
</div>
|
||||
}
|
||||
index={0}
|
||||
panelTemplate={
|
||||
!!trades.length && (
|
||||
<div className="col-span-2">
|
||||
|
|
|
@ -360,7 +360,6 @@ const TradeHistoryTable = ({ numTrades }: { numTrades?: number }) => {
|
|||
</>
|
||||
}
|
||||
key={`${index}`}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4">
|
||||
<div className="text-left">
|
||||
|
|
|
@ -397,7 +397,6 @@ const AccountInterest = () => {
|
|||
</div>
|
||||
}
|
||||
key={`${symbol}${index}`}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<>
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4">
|
||||
|
|
|
@ -336,7 +336,7 @@ export default function StatsTotals({ latestStats, stats }) {
|
|||
<div className="pb-4 text-th-fgd-1 text-lg">
|
||||
{t('current-stats')}
|
||||
</div>
|
||||
{latestStats.map((stat, index) => (
|
||||
{latestStats.map((stat) => (
|
||||
// latestStats.length > 0 ? (
|
||||
<ExpandableRow
|
||||
buttonTemplate={
|
||||
|
@ -370,7 +370,6 @@ export default function StatsTotals({ latestStats, stats }) {
|
|||
</div>
|
||||
}
|
||||
key={stat.name}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4">
|
||||
<div className="text-left">
|
||||
|
|
|
@ -472,7 +472,6 @@ export default function Referral() {
|
|||
</div>
|
||||
}
|
||||
key={`${ref.fee + index}`}
|
||||
index={index}
|
||||
panelTemplate={
|
||||
<>
|
||||
<div className="grid grid-cols-2 grid-flow-row gap-4 pb-4">
|
||||
|
|
Loading…
Reference in New Issue