Skip to content

Commit 7de0e22

Browse files
committed
Merge branch 'fix/footer-explorer-link' of github.com:kleros/gtcr into fix/footer-explorer-link
2 parents 9d04ea8 + a8738a2 commit 7de0e22

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import styled from 'styled-components/macro'
3-
import PropTypes from 'prop-types'
43
import { getAddressPage } from 'utils/network-utils'
54

65
const StyledIcon = styled.svg`
@@ -26,7 +25,10 @@ const StyledLink = styled.a`
2625
align-items: center;
2726
`
2827

29-
const ConrtractExplorerUrl = ({ networkId, contractAddress }) => {
28+
const ContractExplorerUrl: React.FC<{
29+
networkId: number
30+
contractAddress: string
31+
}> = ({ networkId, contractAddress }) => {
3032
const url = `${getAddressPage({
3133
networkId,
3234
address: contractAddress
@@ -67,9 +69,4 @@ const ConrtractExplorerUrl = ({ networkId, contractAddress }) => {
6769
</StyledLink>
6870
)
6971
}
70-
export default ConrtractExplorerUrl
71-
72-
ConrtractExplorerUrl.propTypes = {
73-
networkId: PropTypes.string.isRequired,
74-
contractAddress: PropTypes.string.isRequired
75-
}
72+
export default ContractExplorerUrl

src/pages/items/banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ZERO_ADDRESS, capitalizeFirstLetter } from 'utils/string'
77
import useWindowDimensions from 'hooks/window-dimensions'
88
import { useWeb3Context } from 'web3-react'
99
import getNetworkEnv from 'utils/network-env'
10-
import ConrtractExplorerUrl from 'components/contract-explorer-url'
10+
import ContractExplorerUrl from 'components/contract-explorer-url'
1111

1212
const StyledBanner = styled.div`
1313
padding: 24px 9.375vw;
@@ -97,7 +97,7 @@ const Banner = ({
9797
{defaultTCRAddress && tcrAddress !== defaultTCRAddress && (
9898
<TCRLogo logoURI={logoURI} />
9999
)}
100-
<ConrtractExplorerUrl
100+
<ContractExplorerUrl
101101
networkId={networkId}
102102
contractAddress={tcrAddress}
103103
/>

src/pages/light-items/banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ZERO_ADDRESS, capitalizeFirstLetter } from 'utils/string'
77
import useWindowDimensions from 'hooks/window-dimensions'
88
import { useWeb3Context } from 'web3-react'
99
import getNetworkEnv from 'utils/network-env'
10-
import ConrtractExplorerUrl from 'components/contract-explorer-url'
10+
import ContractExplorerUrl from 'components/contract-explorer-url'
1111

1212
const StyledBanner = styled.div`
1313
padding: 24px 9.375vw;
@@ -103,7 +103,7 @@ const Banner = ({
103103
{defaultTCRAddress && tcrAddress !== defaultTCRAddress && (
104104
<TCRLogo logoURI={logoURI} />
105105
)}
106-
<ConrtractExplorerUrl
106+
<ContractExplorerUrl
107107
networkId={networkId}
108108
contractAddress={tcrAddress}
109109
/>

0 commit comments

Comments
 (0)