about summary refs log tree commit diff
path: root/src/screens/Settings/components/SettingsList.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-07-31 07:41:10 -0500
committerGitHub <noreply@github.com>2025-07-31 05:41:10 -0700
commitb3d207c7b9578314ae0e67ef6f3b8186585156ad (patch)
treeb3cb07c0389dec23c9a676f63ce0f1650d2e8f54 /src/screens/Settings/components/SettingsList.tsx
parent85981deb31f5fc4e114c13b8fe6402c003e4c01a (diff)
downloadvoidsky-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.tsx6
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
 }) {