Skip to content

Commit

Permalink
Merge pull request #31906 from kubabutkiewicz/fix/Button-component-af…
Browse files Browse the repository at this point in the history
…ter-ts-migration

Fix/button component after ts migration
  • Loading branch information
mountiny authored Nov 27, 2023
2 parents 5db665c + 7d5f796 commit 514fbb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {useIsFocused} from '@react-navigation/native';
import React, {ForwardedRef, useCallback} from 'react';
import {ActivityIndicator, GestureResponderEvent, StyleProp, TextStyle, View, ViewStyle} from 'react-native';
import {SvgProps} from 'react-native-svg';
Expand Down Expand Up @@ -110,7 +111,6 @@ type ButtonProps = (ButtonWithText | ChildrenProps) & {

/** Accessibility label for the component */
accessibilityLabel?: string;
isFocused: boolean;
};

function Button(
Expand Down Expand Up @@ -149,7 +149,6 @@ function Button(
shouldRemoveRightBorderRadius = false,
shouldRemoveLeftBorderRadius = false,
shouldEnableHapticFeedback = false,
isFocused,

id = '',
accessibilityLabel = '',
Expand All @@ -159,6 +158,7 @@ function Button(
) {
const theme = useTheme();
const styles = useThemeStyles();
const isFocused = useIsFocused();

const keyboardShortcutCallback = useCallback(
(event?: GestureResponderEvent | KeyboardEvent) => {
Expand Down

0 comments on commit 514fbb3

Please sign in to comment.