Skip to content

Commit

Permalink
Fix view all button
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 28, 2024
1 parent befe6eb commit 98ee336
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions centrifuge-app/src/components/IssuerSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type IssuerSectionProps = {
metadata: Partial<PoolMetadata> | undefined
}

const ButtonSections = styled(RouterTextLink)`
text-decoration: unset;
`

const StyledBox = styled(Box)`
padding: 24px;
&:hover {
Expand All @@ -36,7 +40,10 @@ const StyledBox = styled(Box)`
}
`

const HoverBox = styled(StyledBox)`
const StyledRouterTextLink = styled(RouterTextLink)`
color: white;
text-decoration: unset;
font-size: 14px;
padding: 8px 22px;
background-color: ${SUBTLE_GRAY};
border: 3px solid transparent;
Expand All @@ -45,12 +52,6 @@ const HoverBox = styled(StyledBox)`
border-radius: 4px;
border-color: #91969b1a;
}
`

const StyledRouterTextLink = styled(RouterTextLink)`
color: white;
text-decoration: unset;
font-size: 14px;
:active {
color: white;
}
Expand Down Expand Up @@ -98,14 +99,12 @@ export function ReportDetails({ metadata }: IssuerSectionProps) {
<Text color="white" variant="heading4">
Reports
</Text>
<HoverBox backgroundColor={SUBTLE_GRAY}>
<StyledRouterTextLink to={`${pathname}/reporting`}>View all</StyledRouterTextLink>
</HoverBox>
<StyledRouterTextLink to={`${pathname}/reporting`}>View all</StyledRouterTextLink>
</Box>

<Box marginY={2} backgroundColor={SUBTLE_GRAY} borderRadius={10}>
{reportLinks.map((link, i) => (
<StyledRouterTextLink to={`${pathname}/reporting${link.href}`} key={`${link.label}-${i}`}>
<ButtonSections to={`${pathname}/reporting${link.href}`} key={`${link.label}-${i}`}>
<StyledBox
borderBottom={i === reportLinks.length - 1 ? null : `2px solid ${SUBTLE_GRAY}`}
display="flex"
Expand All @@ -120,7 +119,7 @@ export function ReportDetails({ metadata }: IssuerSectionProps) {
</Box>
<IconChevronRight color="white" />
</StyledBox>
</StyledRouterTextLink>
</ButtonSections>
))}
</Box>

Expand Down

0 comments on commit 98ee336

Please sign in to comment.