Skip to content

Commit

Permalink
Fix SVG dom attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaivre committed Dec 30, 2024
1 parent ef0862c commit 912e702
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions apps/desktop-wallet/src/components/AlephiumLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@ import styled from 'styled-components'

import { ReactComponent as AlephiumLogoSVG } from '@/images/alephium_logo_monochrome.svg'

export default styled(AlephiumLogoSVG)<{ contrasted?: boolean }>`
width: 38px;
height: auto;
const AlephiumLogo = ({ contrasted }: { contrasted?: boolean }) => (
<AlephiumLogoStyled contrasted={contrasted}>
<AlephiumLogoSVG />
</AlephiumLogoStyled>
)

path {
fill: ${({ theme, contrasted }) => (contrasted ? theme.font.contrastPrimary : theme.font.primary)} !important;
export default AlephiumLogo

const AlephiumLogoStyled = styled.div<{ contrasted?: boolean }>`
display: flex;
svg {
width: 100%;
height: 100%;
path {
fill: ${({ theme, contrasted }) => (contrasted ? theme.font.contrastPrimary : theme.font.primary)} !important;
}
}
`

0 comments on commit 912e702

Please sign in to comment.