Add location label to NodoProfileCard

This commit is contained in:
Yana
2025-01-15 13:16:08 +02:00
parent f4a416c478
commit dc804c1235
2 changed files with 8 additions and 5 deletions
@@ -11,7 +11,7 @@ const CountryFlag = ({ countryCode, countryName }: ICountryFlag) => {
<Stack direction="row" gap={1}>
<Flag code={countryCode} width="19" />
<Typography variant="subtitle2" sx={{ color: "pine.950" }}>
<Typography variant="h6" sx={{ color: "pine.950" }}>
{countryName}
</Typography>
</Stack>
@@ -115,10 +115,13 @@ export const NodeProfileCard = (props: INodeProfileCardProps) => {
{nodeInfo?.self_description.moniker || "Moniker"}
</Typography>
{nodeInfo.description.auxiliary_details.location && (
<CountryFlag
countryCode={nodeInfo.description.auxiliary_details.location}
countryName={nodeInfo.description.auxiliary_details.location}
/>
<Box display={"flex"} gap={1}>
<Typography variant="h6">Location:</Typography>
<CountryFlag
countryCode={nodeInfo.description.auxiliary_details.location}
countryName={nodeInfo.description.auxiliary_details.location}
/>
</Box>
)}
{nodeInfo && (
<Typography variant="body4" sx={{ color: "pine.950" }} mt={2}>