Skip to content

Commit 6496964

Browse files
committed
fix: Update icon command in copilot instructions and adjust stroke width in SVG; enhance SettOption to display placeholder text
1 parent ba09493 commit 6496964

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
I am using bun package manager
22
Do not add unnecessary comments for my understanding.
3-
Icons are used from hugeicons if you want to add extra icons to the library, you can add it running `ic iconName` command.
3+
Icons are used from hugeicons if you want to add extra icons to the library, you can add it running `ic-old iconName` command.
44
`iconName` is from the hugeicons website.
Lines changed: 1 addition & 1 deletion
Loading

src/components/Settings/SettOption.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type SettOptionProps = TouchableOpacityProps & {
1010
Right?: React.ReactNode
1111
arrow?: boolean
1212
numberOfLines?: number
13+
placeholder?: string
1314
}
1415

1516
export function SettOption({
@@ -21,6 +22,7 @@ export function SettOption({
2122
className,
2223
arrow,
2324
numberOfLines,
25+
placeholder,
2426
...rest
2527
}: SettOptionProps) {
2628
return (
@@ -36,10 +38,10 @@ export function SettOption({
3638
<View className='p-2.5 px-0'>
3739
<SemiBold
3840
className='text-left text-zinc-800 dark:text-zinc-200'
39-
style={[{ fontSize: 12, flexShrink: 1, paddingBottom: 2 }]}
41+
style={[{ fontSize: 12, flexShrink: 1, paddingBottom: 2 }, !title ? { opacity: 0.5 } : {}]}
4042
numberOfLines={numberOfLines || 0}
4143
>
42-
{title}
44+
{title || placeholder}
4345
</SemiBold>
4446
{children}
4547
</View>

0 commit comments

Comments
 (0)