diff options
author | Eric Bailey <git@esb.lol> | 2025-07-31 07:41:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-31 05:41:10 -0700 |
commit | b3d207c7b9578314ae0e67ef6f3b8186585156ad (patch) | |
tree | b3cb07c0389dec23c9a676f63ce0f1650d2e8f54 /src/screens/Settings/components/SettingsList.tsx | |
parent | 85981deb31f5fc4e114c13b8fe6402c003e4c01a (diff) | |
download | voidsky-b3d207c7b9578314ae0e67ef6f3b8186585156ad.tar.zst |
Make proper extension of `Button` more clearly defined (#8753)
* Remove unecessary color prop from SettingsList LinkItem * Add UninheritableButtonProps to avoid misuse
Diffstat (limited to 'src/screens/Settings/components/SettingsList.tsx')
-rw-r--r-- | src/screens/Settings/components/SettingsList.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/Settings/components/SettingsList.tsx b/src/screens/Settings/components/SettingsList.tsx index 6d1799047..572084972 100644 --- a/src/screens/Settings/components/SettingsList.tsx +++ b/src/screens/Settings/components/SettingsList.tsx @@ -124,7 +124,7 @@ export function LinkItem({ contentContainerStyle, chevronColor, ...props -}: LinkProps & { +}: Omit<LinkProps, Button.UninheritableButtonProps> & { contentContainerStyle?: StyleProp<ViewStyle> destructive?: boolean chevronColor?: string @@ -132,7 +132,7 @@ export function LinkItem({ const t = useTheme() return ( - <Link color="secondary" {...props}> + <Link {...props}> {args => ( <Item destructive={destructive} @@ -154,7 +154,7 @@ export function PressableItem({ contentContainerStyle, hoverStyle, ...props -}: Button.ButtonProps & { +}: Omit<Button.ButtonProps, Button.UninheritableButtonProps> & { contentContainerStyle?: StyleProp<ViewStyle> destructive?: boolean }) { |