Skip to content

Commit

Permalink
feat: sync icons
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 17, 2025
1 parent 61b3371 commit 870905d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions apps/mobile/src/icons/arrow_left_cute_re.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import * as React from "react"
import Svg, { Path } from "react-native-svg"

interface ArrowLeftCuteReIconProps {
width?: number
height?: number
color?: string
}

export const ArrowLeftCuteReIcon = ({
width = 24,
height = 24,
color = "#10161F",
}: ArrowLeftCuteReIconProps) => {
return (
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
<Path fill="#fff" fillOpacity={0.01} d="M24 0v24H0V0z" />
<Path
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M5 12h15m-10 5.657c-2.109-1.055-3.591-2.66-4.897-4.522-.372-.53-.559-.796-.55-1.124.007-.33.208-.588.609-1.105C6.538 9.132 8.044 7.55 10 6.343"
/>
<Path
stroke={color}
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M5 12h15m-10 5.657a15.962 15.962 0 0 1-4.98-4.63c-.335-.473-.501-.71-.501-1.027 0-.317.166-.554.5-1.028A15.962 15.962 0 0 1 10 6.343"
/>
</Svg>
)
}
1 change: 1 addition & 0 deletions icons/mgc/arrow_left_cute_re.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion icons/mgc/information_cute_re copy.svg

This file was deleted.

1 change: 0 additions & 1 deletion icons/mgc/time_cute_re copy.svg

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"publish": "electron-vite build && electron-forge publish",
"start": "electron-vite preview",
"sync:ab": "tsx scripts/pull-ab-flags.ts",
"sync:icons": "tsx scripts/svg-to-rn.ts && prettier --write apps/mobile/src/icons/**/*.tsx",
"test": "CI=1 pnpm --recursive run test",
"typecheck": "turbo typecheck",
"update:main-hash": "tsx plugins/vite/generate-main-hash.ts"
Expand Down
2 changes: 1 addition & 1 deletion scripts/svg-to-rn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface ${componentName}Props {
export const ${componentName} = ({
width = ${width},
height = ${height},
color = "${DEFAULT_COLOR}",
${pathElements.includes(`{color}`) ? `color = "${DEFAULT_COLOR}",` : ""}
}: ${componentName}Props) => {
return (
<Svg width={width} height={height} fill="none" viewBox="0 0 ${width} ${height}">
Expand Down

0 comments on commit 870905d

Please sign in to comment.