Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix mobile LockedStatusBadge padding (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jul 24, 2023
1 parent 8943078 commit bc04f52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mobile/src/components/core/LockedStatusBadge.tsx
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 bc04f52

Please sign in to comment.