Skip to content

Commit 20d9d72

Browse files
authored
Merge pull request #275 from kleros/development
Fix: Broken Gnosis explorer url
2 parents 85936cd + 0617104 commit 20d9d72

File tree

3 files changed

+41
-35
lines changed

3 files changed

+41
-35
lines changed

src/components/footer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ const Footer = () => (
4848
</SocialLink>
4949
</div>
5050
<div className="g-kleros_footer__social">
51-
{SOCIAL_NAV.map(item => (
52-
<SocialLink href={item.href}>{item.icon}</SocialLink>
51+
{SOCIAL_NAV.map((item, index) => (
52+
<SocialLink key={index} href={item.href}>
53+
{item.icon}
54+
</SocialLink>
5355
))}
5456
</div>
5557
</StyledFooter>

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

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,43 @@ const StyledButton = styled(Button)`
1616
text-transform: capitalize;
1717
`
1818

19-
const LightItemCardContent = ({ item, chainId, tcrAddress }) => (
20-
<div
21-
style={{
22-
height: '100%',
23-
display: 'flex',
24-
flexDirection: 'column',
25-
justifyContent: 'space-between',
26-
alignItems: 'center'
27-
}}
28-
>
29-
<div>
30-
{item.tcrData.mergedData
31-
.filter(
32-
col =>
33-
col.isIdentifier ||
34-
col.type === ItemTypes.IMAGE ||
35-
col.type === ItemTypes.FILE
36-
)
37-
.map((column, j) => (
38-
<StyledItemCol key={j}>
39-
<DisplaySelector
40-
type={column.type}
41-
value={column.value}
42-
allowedFileTypes={column.allowedFileTypes}
43-
/>
44-
</StyledItemCol>
45-
))}
19+
const LightItemCardContent = ({ item, chainId, tcrAddress }) => {
20+
const allowedFileTypes =
21+
item.columns.filter(col => col.allowedFileTypes)[0]?.allowedFileTypes || ''
22+
return (
23+
<div
24+
style={{
25+
height: '100%',
26+
display: 'flex',
27+
flexDirection: 'column',
28+
justifyContent: 'space-between',
29+
alignItems: 'center'
30+
}}
31+
>
32+
<div>
33+
{item.tcrData.mergedData
34+
.filter(
35+
col =>
36+
col.isIdentifier ||
37+
col.type === ItemTypes.IMAGE ||
38+
col.type === ItemTypes.FILE
39+
)
40+
.map((column, j) => (
41+
<StyledItemCol key={j}>
42+
<DisplaySelector
43+
type={column.type}
44+
value={column.value}
45+
allowedFileTypes={allowedFileTypes}
46+
/>
47+
</StyledItemCol>
48+
))}
49+
</div>
50+
<Link to={`/tcr/${chainId}/${tcrAddress}/${item.tcrData.ID}`}>
51+
<StyledButton>Details</StyledButton>
52+
</Link>
4653
</div>
47-
<Link to={`/tcr/${chainId}/${tcrAddress}/${item.tcrData.ID}`}>
48-
<StyledButton>Details</StyledButton>
49-
</Link>
50-
</div>
51-
)
54+
)
55+
}
5256

5357
LightItemCardContent.propTypes = {
5458
item: PropTypes.shape({

src/config/networks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const NETWORKS_INFO = Object.freeze({
8585
explorers: [
8686
{
8787
name: 'blockscout',
88-
url: 'https://blockscout.com/xdai/',
88+
url: 'https://blockscout.com/xdai/mainnet',
8989
standard: 'EIP3091'
9090
}
9191
],

0 commit comments

Comments
 (0)