diff options
Diffstat (limited to 'src/view/com/util/forms/Button.tsx')
-rw-r--r-- | src/view/com/util/forms/Button.tsx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/view/com/util/forms/Button.tsx b/src/view/com/util/forms/Button.tsx index 96b49a003..24d478fe5 100644 --- a/src/view/com/util/forms/Button.tsx +++ b/src/view/com/util/forms/Button.tsx @@ -1,16 +1,16 @@ import React from 'react' import { ActivityIndicator, - GestureResponderEvent, - NativeSyntheticEvent, - NativeTouchEvent, + type GestureResponderEvent, + type NativeSyntheticEvent, + type NativeTouchEvent, Pressable, - PressableStateCallbackType, - StyleProp, + type PressableStateCallbackType, + type StyleProp, StyleSheet, - TextStyle, + type TextStyle, View, - ViewStyle, + type ViewStyle, } from 'react-native' import {choose} from '#/lib/functions' @@ -37,7 +37,9 @@ declare module 'react-native' { } } -// TODO: Enforce that button always has a label +/** + * @deprecated use Button from `#/components/Button.tsx` instead + */ export function Button({ type = 'primary', label, |