Skip to content

Commit

Permalink
Fix mobile LockedStatusBadge padding (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan committed Jul 24, 2023
1 parent b9d1bab commit 86b220d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const useStyles = makeStyles(({ palette, spacing, typography }) => ({
root: {
backgroundColor: palette.accentBlue,
paddingHorizontal: spacing(2),
paddingVertical: 1,
borderRadius: spacing(10),
justifyContent: 'center'
},
Expand All @@ -23,13 +24,13 @@ const useStyles = makeStyles(({ palette, spacing, typography }) => ({

export type LockedStatusBadgeProps = {
locked: boolean
variant: 'purchase' | 'gated'
variant?: 'purchase' | 'gated'
}

/** Renders a small badge with locked or unlocked icon */
export const LockedStatusBadge = ({
locked,
variant
variant = 'gated'
}: LockedStatusBadgeProps) => {
const styles = useStyles()
const staticWhite = useColor('staticWhite')
Expand Down

0 comments on commit 86b220d

Please sign in to comment.