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:
@@ -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
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user