Skip to content

Commit

Permalink
refactor(webapp): rename Producers components
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 1, 2023
1 parent 04035f9 commit b005226
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import styles from './styles'

const useStyles = makeStyles(styles)

const NonCompliantCard = ({ producer, tokenPrice }) => {
const NonCompliantRow = ({ producer, tokenPrice }) => {
const classes = useStyles()
const { t } = useTranslation('producerCardComponent')
const { healthLights } = generalConfig
Expand Down Expand Up @@ -95,6 +95,6 @@ const NonCompliantCard = ({ producer, tokenPrice }) => {
)
}

NonCompliantCard.propTypes = {}
NonCompliantRow.propTypes = {}

export default memo(NonCompliantCard)
export default memo(NonCompliantRow)
4 changes: 2 additions & 2 deletions webapp/src/routes/BlockProducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import SearchBar from '../../components/SearchBar'
import useBlockProducerState from '../../hooks/customHooks/useBlockProducerState'
import NoResults from '../../components/NoResults'
import ProducersUpdateLog from '../../components/ProducersUpdateLog'
import ProducersTable from '../../components/ProducersList/ProducersTable'
import ProducerRow from '../../components/ProducersList/ProducerRow'
import ProducersTable from '../../components/ProducersTable'
import ProducerRow from '../../components/ProducersTable/ProducerRow'

import styles from './styles'

Expand Down
6 changes: 3 additions & 3 deletions webapp/src/routes/NonCompliantBPs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import LinearProgress from '@mui/material/LinearProgress'

import useNonCompliantState from '../../hooks/customHooks/useNonCompliantState'
import NoResults from '../../components/NoResults'
import ProducersTable from '../../components/ProducersList/ProducersTable'
import NonCompliantCard from '../../components/NonCompliantCard'
import ProducersTable from '../../components/ProducersTable'
import NonCompliantRow from '../../components/NonCompliantRow'

import RewardsStats from './RewardsStats'

Expand Down Expand Up @@ -36,7 +36,7 @@ const NonCompliantBPs = () => {
<ProducersTable
columnsNames={columnsNames}
producers={items}
RowComponent={NonCompliantCard}
RowComponent={NonCompliantRow}
RowProps={{ tokenPrice: stats.tokenPrice || NaN }}
/>
</Card>
Expand Down

0 comments on commit b005226

Please sign in to comment.