Make proper extension of Button more clearly defined (#8753)

* Remove unecessary color prop from SettingsList LinkItem

* Add UninheritableButtonProps to avoid misuse
This commit is contained in:
Eric Bailey
2025-07-31 07:41:10 -05:00
committed by GitHub
parent 85981deb31
commit b3d207c7b9
2 changed files with 15 additions and 3 deletions
@@ -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
}) {