Change calendar transparency (#3732)

fix
This commit is contained in:
bosiraphael
2024-02-05 11:27:05 +01:00
committed by GitHub
parent 8692e5d1ca
commit 6de9d972ec
2 changed files with 10 additions and 4 deletions

View File

@ -12,6 +12,10 @@ const StyledCardsContainer = styled.div`
margin-top: ${({ theme }) => theme.spacing(6)}; margin-top: ${({ theme }) => theme.spacing(6)};
`; `;
const StyledSettingsNavigationCard = styled(SettingsNavigationCard)`
color: ${({ theme }) => theme.font.color.extraLight};
`;
export const SettingsAccountsSettingsSection = () => { export const SettingsAccountsSettingsSection = () => {
const navigate = useNavigate(); const navigate = useNavigate();
@ -29,14 +33,14 @@ export const SettingsAccountsSettingsSection = () => {
> >
Set email visibility, manage your blocklist and more. Set email visibility, manage your blocklist and more.
</SettingsNavigationCard> </SettingsNavigationCard>
<SettingsNavigationCard <StyledSettingsNavigationCard
Icon={IconCalendarEvent} Icon={IconCalendarEvent}
title="Calendar" title="Calendar"
disabled disabled
hasSoonPill hasSoonPill
> >
Configure and customize your calendar preferences. Configure and customize your calendar preferences.
</SettingsNavigationCard> </StyledSettingsNavigationCard>
</StyledCardsContainer> </StyledCardsContainer>
</Section> </Section>
); );

View File

@ -15,6 +15,7 @@ type SettingsNavigationCardProps = {
Icon: IconComponent; Icon: IconComponent;
onClick?: () => void; onClick?: () => void;
title: string; title: string;
className?: string;
}; };
const StyledCard = styled(Card)<{ const StyledCard = styled(Card)<{
@ -63,15 +64,16 @@ export const SettingsNavigationCard = ({
Icon, Icon,
onClick, onClick,
title, title,
className,
}: SettingsNavigationCardProps) => { }: SettingsNavigationCardProps) => {
const theme = useTheme(); const theme = useTheme();
return ( return (
<StyledCard disabled={disabled} onClick={onClick}> <StyledCard disabled={disabled} onClick={onClick} className={className}>
<StyledCardContent> <StyledCardContent>
<StyledHeader> <StyledHeader>
<Icon size={theme.icon.size.lg} stroke={theme.icon.stroke.sm} /> <Icon size={theme.icon.size.lg} stroke={theme.icon.stroke.sm} />
<StyledTitle> <StyledTitle className={className}>
{title} {title}
{hasSoonPill && <SoonPill />} {hasSoonPill && <SoonPill />}
</StyledTitle> </StyledTitle>