Skip to content

Commit

Permalink
Merge pull request #257 from threshold-network/issue-227-box-label
Browse files Browse the repository at this point in the history
Fixes visual bug on Stake Card

Resolves incorrect dark mode color for Box Label in Stake Card by updating the
component from Badge to BoxLabel.
  • Loading branch information
michalsmiarowski authored Oct 4, 2022
2 parents 318428f + 4711a71 commit a9b7a30
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from "react"
import {
Badge,
BoxLabel,
BodySm,
Button,
HStack,
Expand All @@ -25,20 +25,12 @@ const AuthorizeApplicationRow: FC<AuthorizeApplicationRowProps> = ({
const { label, isAuthorized, percentage } = appAuthData
return (
<HStack justify="space-between" {...restProps}>
<Badge
variant="solid"
borderRadius={5}
px={2}
py={2}
backgroundColor="gray.50"
color="gray.700"
textTransform="none"
>
<BoxLabel>
<HStack>
{isAuthorized && <CheckCircleIcon w={4} h={4} color="green.500" />}
<BodySm>{label} App</BodySm>
</HStack>
</Badge>
</BoxLabel>
{isAuthorized ? (
<HStack width="40%">
<Progress
Expand Down

0 comments on commit a9b7a30

Please sign in to comment.