File tree Expand file tree Collapse file tree
apps/front/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Box , Flex , Text } from '@devup-ui/react'
22
33import { ICON_PATHS } from '@/components/icons/iconPaths'
4+ import { asset } from '@/lib/asset'
45import type { AccidentCause , AccidentDamage } from '@/static/accidents'
56import { CAUSE_LABELS , formatDamage } from '@/static/accidents'
67
@@ -44,7 +45,7 @@ export function Badge(props: BadgeProps) {
4445 < Box
4546 bg = { color }
4647 boxSize = "14px"
47- maskImage = { `url(${ iconPath } )` }
48+ maskImage = { `url(${ asset ( iconPath ) } )` }
4849 maskPos = "center"
4950 maskRepeat = "no-repeat"
5051 maskSize = "contain"
Original file line number Diff line number Diff line change 11import { Box } from '@devup-ui/react'
22
3+ import { asset } from '@/lib/asset'
4+
35export function Icon ( {
46 iconPath,
57 color = '$text' ,
@@ -16,7 +18,7 @@ export function Icon({
1618 bg = { color }
1719 boxSize = { boxSize }
1820 className = { className }
19- maskImage = { `url(${ iconPath } )` }
21+ maskImage = { `url(${ asset ( iconPath ) } )` }
2022 maskPos = "center"
2123 maskRepeat = "no-repeat"
2224 maskSize = "contain"
You can’t perform that action at this time.
0 commit comments