fix type issue with new ExpandableRow props

This commit is contained in:
tjs 2022-03-01 14:28:20 -05:00
parent b6999cd220
commit c41af04f8e
7 changed files with 1 additions and 8 deletions

View File

@ -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">

View File

@ -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">

View File

@ -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">

View File

@ -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">

View File

@ -397,7 +397,6 @@ const AccountInterest = () => {
</div>
}
key={`${symbol}${index}`}
index={index}
panelTemplate={
<>
<div className="grid grid-cols-2 grid-flow-row gap-4">

View File

@ -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">

View File

@ -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">