fixed styles

This commit is contained in:
Fedor Katurov 2021-04-08 11:21:13 +07:00
parent 4e18eba558
commit 9b52ff10e5
35 changed files with 12539 additions and 2896 deletions

View file

@ -4,7 +4,7 @@ export const Icon = memo(({ icon, size = 32 }: { icon: string; size?: number })
<svg width={size} height={size} viewBox="0 0 32 32">
<defs>
<mask id={`icon-mask-${icon}`}>
<use xlinkHref={`${require('~/sprites/icon.svg')}#${icon}`} x={0} y={0} />
<use xlinkHref={`/images/icon.svg#${icon}`} x={0} y={0} />
</mask>
</defs>
<rect x="0" y="0" width="32" height="32" stroke="none" mask={`url(#icon-mask-${icon})`} />