Skip to content

Commit

Permalink
Merge branch 'daniel-schwartz-k:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
danielschwartz85 committed Sep 5, 2023
2 parents 344644e + 783b461 commit 1f4126c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/secret/secret.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function Secret(props: ISecretProps) {
const { value, onChange, isVerified } = props
const theme = useTheme()
const greaterThanMid = useMediaQuery(theme.breakpoints.up('md'))
const iconRightMargin = greaterThanMid ? 2 : 0

return (
<>
Expand All @@ -41,9 +42,9 @@ export default function Secret(props: ISecretProps) {
</Grid>
<Grid item md={'auto'} xs={'auto'}>
{isVerified ? (
<CheckCircleOutline sx={{ pr: greaterThanMid ? 2 : 0, fontSize: 30, color: 'success.main' }} />
<CheckCircleOutline sx={{ pr: iconRightMargin, fontSize: 30, color: 'success.main' }} />
) : (
<ErrorOutline sx={{ pr: 2, fontSize: 30, color: 'error.main' }} />
<ErrorOutline sx={{ pr: iconRightMargin, fontSize: 30, color: 'error.main' }} />
)}
</Grid>
</Grid>
Expand Down

0 comments on commit 1f4126c

Please sign in to comment.