Skip to content

Commit

Permalink
refactor: changing style
Browse files Browse the repository at this point in the history
  • Loading branch information
aguzmant103 committed Oct 16, 2023
1 parent 1e9213d commit 5f8b144
Showing 1 changed file with 48 additions and 10 deletions.
58 changes: 48 additions & 10 deletions apps/dashboard/src/pages/group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,6 @@ ${memberIds.join("\n")}
{_group.description}
</Text>
)}
<Button
variant="solid"
colorScheme="secondary"
onClick={onCopy2}
>
{hasCopied2 ? "Copied!" : "Copy group ID"}
</Button>
</VStack>

<HStack mt="30px" align="start" spacing="14">
Expand Down Expand Up @@ -301,7 +294,54 @@ ${memberIds.join("\n")}
</Heading>
</Box>
</HStack>

(
<Box
bgColor="balticSea.50"
p="25px 30px 25px 30px"
borderRadius="8px"
>
<Text fontSize="20px">Group ID</Text>

{

Check failure on line 305 in apps/dashboard/src/pages/group.tsx

View workflow job for this annotation

GitHub Actions / style

Curly braces are unnecessary here
<>

Check failure on line 306 in apps/dashboard/src/pages/group.tsx

View workflow job for this annotation

GitHub Actions / style

Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
<InputGroup size="lg" mt="10px">
<Input
pr="50px"
placeholder="API key"
value={groupId as string}
isDisabled
/>

<InputRightElement mr="5px">
<Tooltip
label={
hasCopied2 ? "Copied!" : "Copy"
}
closeOnClick={false}
hasArrow
>
<IconButton
variant="link"
aria-label="Copy API key"
onClick={onCopy2}
onMouseDown={(e) =>
e.preventDefault()
}
icon={
<Icon
color="sunsetOrange.600"
boxSize="5"
as={FiCopy}
/>
}
/>
</Tooltip>
</InputRightElement>
</InputGroup>
</>
}
</Box>
)
{groupType === "off-chain" && !_group.credentials && (
<Box
bgColor="balticSea.50"
Expand Down Expand Up @@ -376,9 +416,7 @@ ${memberIds.join("\n")}
)}
</Box>
)}

<Image src={image1} />

{_group.type === "off-chain" && (
<Box
bgColor="classicRose.50"
Expand Down

0 comments on commit 5f8b144

Please sign in to comment.