|
|
@@ -30,6 +30,7 @@ interface RecordInfo {
|
|
|
earnedUsd: string
|
|
|
earnedUsdPercent: string
|
|
|
openTime: number
|
|
|
+ hasDetail?: boolean
|
|
|
bonusInfo?: {
|
|
|
fromCreatorPositionStatus: number
|
|
|
fromCreatorPosition: string
|
|
|
@@ -60,7 +61,7 @@ function MyLPPageContent() {
|
|
|
console.log(data, 'data')
|
|
|
const newLpList = positions.map((item) => {
|
|
|
if (item.positionAddress === position.positionAddress) {
|
|
|
- return Object.assign(item, data.result.data)
|
|
|
+ return Object.assign(item, data.result.data, { hasDetail: true })
|
|
|
}
|
|
|
return item
|
|
|
})
|
|
|
@@ -372,6 +373,9 @@ function MyLPPageContent() {
|
|
|
columns={columns}
|
|
|
dataSource={lpList}
|
|
|
rowKey="nftMintAddress"
|
|
|
+ rowClassName={(record: RecordInfo) => {
|
|
|
+ return record?.hasDetail ? 'bg-gray-100' : 'bg-green-100'
|
|
|
+ }}
|
|
|
pagination={{
|
|
|
pageSize: pageSize,
|
|
|
showSizeChanger: true,
|