Skip to content

Commit

Permalink
Restore text style on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed May 29, 2024
1 parent e61c907 commit b72be36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tx-flow/common/TxLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const TxLayout = ({

const theme = useTheme()
const isSmallScreen = useMediaQuery(theme.breakpoints.down('md'))
const isDesktop = useMediaQuery(theme.breakpoints.down('lg'))

const steps = Array.isArray(children) ? children : [children]
const progress = Math.round(((step + 1) / steps.length) * 100)
Expand Down Expand Up @@ -146,7 +147,7 @@ const TxLayout = ({
{onBack && step > 0 && (
<Button
data-testid="modal-back-btn"
variant="outlined"
variant={isDesktop ? 'text' : 'outlined'}
onClick={onBack}
className={css.backButton}
startIcon={<ArrowBackIcon fontSize="small" />}
Expand Down

0 comments on commit b72be36

Please sign in to comment.