Skip to content

Commit 122f8bb

Browse files
committed
fix: light curate, stop passing chainId as props
1 parent 33b5e06 commit 122f8bb

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

src/components/light-tcr-card-content.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,10 @@ const StyledResult = styled(Result)`
2929

3030
const TCRCardContent = ({
3131
tcrAddress,
32-
chainId,
3332
currentTCRAddress,
3433
ID,
3534
hideDetailsButton
3635
}) => {
37-
console.log({
38-
tcrAddress,
39-
currentTCRAddress,
40-
ID,
41-
hideDetailsButton
42-
})
4336
const { library, active, networkId } = useWeb3Context()
4437
const [error, setError] = useState()
4538
const gtcr = useMemo(() => {
@@ -83,12 +76,12 @@ const TCRCardContent = ({
8376
</StyledItemCol>
8477
<StyledItemCol>
8578
{!hideDetailsButton && (
86-
<Link to={`/tcr/${chainId}/${currentTCRAddress}/${ID}`}>
79+
<Link to={`/tcr/${networkId}/${currentTCRAddress}/${ID}`}>
8780
<Button>Details</Button>
8881
</Link>
8982
)}
9083
<Link
91-
to={`/tcr/${chainId}/${tcrAddress}`}
84+
to={`/tcr/${networkId}/${tcrAddress}`}
9285
style={{ marginLeft: '12px' }}
9386
>
9487
<Button type="primary">Open List</Button>
@@ -130,12 +123,12 @@ const TCRCardContent = ({
130123
</div>
131124
<StyledItemCol>
132125
{!hideDetailsButton && (
133-
<Link to={`/tcr/${chainId}/${currentTCRAddress}/${ID}`}>
126+
<Link to={`/tcr/${networkId}/${currentTCRAddress}/${ID}`}>
134127
<Button>Details</Button>
135128
</Link>
136129
)}
137130
<Link
138-
to={`/tcr/${chainId}/${tcrAddress}`}
131+
to={`/tcr/${networkId}/${tcrAddress}`}
139132
style={{ marginLeft: '12px' }}
140133
>
141134
<Button type="primary">Open List</Button>

src/pages/items/item-card.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ const CardItemInfo = ({
134134
content = isTCRofTCRs ? (
135135
<TCRCardContent
136136
ID={item.tcrData.ID}
137-
chainId={chainId}
138137
tcrAddress={item.columns[0].value}
139138
itemName={itemName}
140139
currentTCRAddress={tcrAddress}

src/pages/light-items/item-card.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ const CardItemInfo = ({
134134
content = isTCRofTCRs ? (
135135
<TCRCardContent
136136
ID={item.tcrData.ID}
137-
chainId={chainId}
138137
tcrAddress={item.columns[0].value}
139138
itemName={itemName}
140139
currentTCRAddress={tcrAddress}

0 commit comments

Comments
 (0)