Skip to content

Commit

Permalink
fix: display cow token logo in header
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Jan 11, 2024
1 parent a08cca9 commit eb08680
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import CowProtocolIcon from '@cowprotocol/assets/cow-swap/cow_v2.svg'
import CowProtocolIcon from '@cowprotocol/assets/cow-swap/cow_v2.svg?url'

import styled from 'styled-components/macro'

console.log('TEST', CowProtocolIcon)
export const Icon = styled.span<Props>`
--defaultSize: 24px;
--smallSize: 28px;
background: url(${CowProtocolIcon}) no-repeat center/contain;
height: ${({ size }) => (size ? `${size}px` : 'var(--defaultSize)')};
width: ${({ size }) => (size ? `${size}px` : 'var(--defaultSize)')};
display: inline-block;
margin: 0;
border-radius: ${({ size }) => (size ? `${size}px` : 'var(--defaultSize)')};
position: relative;
background: url(${CowProtocolIcon}) no-repeat center/contain;
${({ theme }) => theme.mediaWidth.upToMedium`
width: var(--smallSize);
Expand Down

0 comments on commit eb08680

Please sign in to comment.