Skip to content

Commit

Permalink
fix: change of icon for verification unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
cfuisat committed Feb 8, 2024
1 parent be643fb commit 1be2e5d
Showing 1 changed file with 31 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,37 @@ const BolnisiWineDrawer = () => {
<Header>
<Box width={100} height={100} borderRadius={"50%"} mx={"auto"} position={"relative"}>
<DefaultImageWine width={"100px"} height={"100px"} fontSize="36px" name={getWineName(wineryId) || ""} />
<Box
position={"absolute"}
width={32}
height={32}
display={"flex"}
alignItems={"center"}
justifyContent={"center"}
bgcolor={theme.palette.success[700]}
borderRadius={"50%"}
bottom={0}
right={0}
>
<VerifiedIcon width={20} height={20} />
</Box>
{!data?.externalApiAvailable ? (
<Box
position={"absolute"}
width={32}
height={32}
display={"flex"}
alignItems={"center"}
justifyContent={"center"}
bgcolor={theme.palette.warning[700]}
borderRadius={"50%"}
bottom={0}
right={0}
>
<InvalidIcon fill={theme.palette.secondary.main} />
</Box>
) : (
<Box
position={"absolute"}
width={32}
height={32}
display={"flex"}
alignItems={"center"}
justifyContent={"center"}
bgcolor={theme.palette.success[700]}
borderRadius={"50%"}
bottom={0}
right={0}
>
<VerifiedIcon width={20} height={20} />
</Box>
)}
</Box>

<Box mt={2}>
Expand Down

0 comments on commit 1be2e5d

Please sign in to comment.