Skip to content

Commit

Permalink
Merge pull request #1374 from edenia/feat/undiscoverable-bps-table-1349
Browse files Browse the repository at this point in the history
Feat/undiscoverable bps table 1349
  • Loading branch information
xavier506 authored Nov 1, 2023
2 parents 542266f + 97e758c commit 65ced30
Show file tree
Hide file tree
Showing 30 changed files with 262 additions and 371 deletions.
6 changes: 3 additions & 3 deletions webapp/public/sitemap.jungle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</url>
<url>
<loc>https://jungle.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://jungle.antelope.tools/cpu-benchmark</loc>
Expand All @@ -49,11 +49,11 @@
</url>
<url>
<loc>https://jungle.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://jungle.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://jungle.antelope.tools/block-producers/lioninjungle</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.libre-testnet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</url>
<url>
<loc>https://libre-testnet.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre-testnet.antelope.tools/block-distribution</loc>
Expand Down Expand Up @@ -65,11 +65,11 @@
</url>
<url>
<loc>https://libre-testnet.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre-testnet.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre-testnet.antelope.tools/block-producers/rioblocks</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.libre.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</url>
<url>
<loc>https://libre.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre.antelope.tools/ricardian-contract</loc>
Expand All @@ -57,11 +57,11 @@
</url>
<url>
<loc>https://libre.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://libre.antelope.tools/block-producers/libretech</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.mainnet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</url>
<url>
<loc>https://eos.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://eos.antelope.tools/ricardian-contract</loc>
Expand All @@ -45,11 +45,11 @@
</url>
<url>
<loc>https://eos.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://eos.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://eos.antelope.tools/block-producers/aus1genereos</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.telos-testnet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</url>
<url>
<loc>https://telos-testnet.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos-testnet.antelope.tools/ricardian-contract</loc>
Expand All @@ -54,11 +54,11 @@
</url>
<url>
<loc>https://telos-testnet.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos-testnet.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos-testnet.antelope.tools/block-producers/southafrica1</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.telos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</url>
<url>
<loc>https://telos.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos.antelope.tools/ricardian-contract</loc>
Expand All @@ -54,11 +54,11 @@
</url>
<url>
<loc>https://telos.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://telos.antelope.tools/block-producers/caleosblocks</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.wax-testnet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</url>
<url>
<loc>https://wax-testnet.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-01-19</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax-testnet.antelope.tools/ricardian-contract</loc>
Expand All @@ -46,11 +46,11 @@
</url>
<url>
<loc>https://wax-testnet.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax-testnet.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax-testnet.antelope.tools/block-producers/blokcrafters</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.wax.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</url>
<url>
<loc>https://wax.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax.antelope.tools/ricardian-contract</loc>
Expand All @@ -46,11 +46,11 @@
</url>
<url>
<loc>https://wax.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://wax.antelope.tools/block-producers/nation.wax</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.xpr-testnet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</url>
<url>
<loc>https://xpr-testnet.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr-testnet.antelope.tools/nodes-distribution</loc>
Expand All @@ -50,11 +50,11 @@
</url>
<url>
<loc>https://xpr-testnet.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr-testnet.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr-testnet.antelope.tools/block-producers/saltant</loc>
Expand Down
6 changes: 3 additions & 3 deletions webapp/public/sitemap.xpr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</url>
<url>
<loc>https://xpr.antelope.tools/undiscoverable-bps</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr.antelope.tools/nodes-distribution</loc>
Expand All @@ -50,11 +50,11 @@
</url>
<url>
<loc>https://xpr.antelope.tools/about</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr.antelope.tools/help</loc>
<lastmod>2023-09-30</lastmod>
<lastmod>2023-11-02</lastmod>
</url>
<url>
<loc>https://xpr.antelope.tools/block-producers/protonnz</loc>
Expand Down
26 changes: 14 additions & 12 deletions webapp/src/components/EmptyState/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react'
import { Link as RouterLink } from 'react-router-dom'
import { Link } from 'react-router-dom'
import { makeStyles } from '@mui/styles'
import { useTranslation } from 'react-i18next'
import Link from '@mui/material/Link'
import Button from '@mui/material/Button'

import styles from './styles'

const useStyles = makeStyles(styles)

const EmptyState = () => {
const EmptyState = ({ isNonCompliant }) => {
const classes = useStyles()
const { t } = useTranslation('producerCardComponent')

Expand All @@ -21,15 +21,17 @@ const EmptyState = () => {
alt=""
/>
<span>{t('emptyState')}</span>
<Link
component={RouterLink}
to="/undiscoverable-bps"
variant="contained"
color="primary"
mt={2}
>
{t('viewList')}
</Link>
{isNonCompliant && (
<Button
component={Link}
to="/undiscoverable-bps"
variant="contained"
color="primary"
mt={2}
>
{t('viewList')}
</Button>
)}
</div>
)
}
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/EmptyState/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export default (theme) => ({
alignItems: 'center',
justifyContent: 'center',
'& svg': {
color: theme.palette.error.light
color: theme.palette.error.light,
},
'& span': {
marginTop: theme.spacing(1),
margin: theme.spacing(1, 4, 0),
},
},
imgError: {
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/NodesList/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default (theme) => ({
},
cardRow: {
display: 'grid',
gap: theme.spacing(2),
gridTemplateColumns: '60px 240px 4fr',
alignItems: 'center',
width: '100%',
Expand Down
Loading

0 comments on commit 65ced30

Please sign in to comment.