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 7987fa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import CowProtocolIcon from '@cowprotocol/assets/cow-swap/cow_v2.svg'

import styled from 'styled-components/macro'

console.log('TEST1', 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
2 changes: 1 addition & 1 deletion apps/cowswap-frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default defineConfig(({ mode }) => {
...getReactProcessEnv(mode),
},

assetsInclude: ['**/*.md'],
assetsInclude: ['**/*.md', '**/*.svg', '../../libs/assets/**/*'],

cacheDir: '../../node_modules/.vite/cowswap-frontend',

Expand Down

0 comments on commit 7987fa2

Please sign in to comment.