Skip to content

Commit

Permalink
EarningsPerMachine Chart: description - added (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitto-moz authored Jun 27, 2024
1 parent a15e385 commit 3b900ea
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Switch } from '@saladtechnologies/garden-components'
import { Switch, Text } from '@saladtechnologies/garden-components'
import { useState } from 'react'
import type { WithStyles } from 'react-jss'
import withStyles from 'react-jss'
Expand Down Expand Up @@ -57,6 +57,10 @@ const styles = (theme: SaladTheme) => ({
earningPerMachineSwitchWrapper: {
marginLeft: 32,
},
descriptionWrapper: {
paddingLeft: '70px',
color: theme.lightGreen,
},
})

interface Props extends WithStyles<typeof styles> {
Expand Down Expand Up @@ -94,6 +98,14 @@ const EarningHistoryRaw = ({ classes, viewLast24Hours, viewLast7Days, viewLast30
<div className={classes.chartContainer}>
{isEarningsPerMachineEnabled ? <EarningLineChartContainer /> : <EarningChartContainer />}
</div>
{isEarningsPerMachineEnabled && (
<div className={classes.descriptionWrapper}>
<Text variant="baseXS">
*Per machine earnings don’t include referral earnings, earning rate multipliers or any other kind of bonus
earnings.
</Text>
</div>
)}
</div>
</div>
)
Expand Down

0 comments on commit 3b900ea

Please sign in to comment.