From f1372abec5943076d0cd0409db04c6b1587cd241 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 7 May 2025 21:44:38 +0300 Subject: delete unused auth components (#8334) --- src/view/com/auth/util/HelpTip.tsx | 37 ------------------------ src/view/com/auth/util/TextInput.tsx | 56 ------------------------------------ 2 files changed, 93 deletions(-) delete mode 100644 src/view/com/auth/util/HelpTip.tsx delete mode 100644 src/view/com/auth/util/TextInput.tsx (limited to 'src') diff --git a/src/view/com/auth/util/HelpTip.tsx b/src/view/com/auth/util/HelpTip.tsx deleted file mode 100644 index 196f30412..000000000 --- a/src/view/com/auth/util/HelpTip.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import {StyleSheet, View} from 'react-native' - -import {useColorSchemeStyle} from '#/lib/hooks/useColorSchemeStyle' -import {InfoCircleIcon} from '#/lib/icons' -import {colors, s} from '#/lib/styles' -import {Text} from '#/view/com/util/text/Text' - -export function HelpTip({text}: {text: string}) { - const bg = useColorSchemeStyle( - {backgroundColor: colors.gray1}, - {backgroundColor: colors.gray8}, - ) - const fg = useColorSchemeStyle({color: colors.gray5}, {color: colors.gray4}) - return ( - - - - - - {text} - - - ) -} - -const styles = StyleSheet.create({ - icon: { - width: 18, - }, - helptip: { - flexDirection: 'row', - alignItems: 'flex-start', - borderRadius: 6, - paddingHorizontal: 10, - paddingVertical: 8, - }, -}) diff --git a/src/view/com/auth/util/TextInput.tsx b/src/view/com/auth/util/TextInput.tsx deleted file mode 100644 index 083dda555..000000000 --- a/src/view/com/auth/util/TextInput.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import {ComponentProps} from 'react' -import {StyleSheet, TextInput as RNTextInput, View} from 'react-native' -import {IconProp} from '@fortawesome/fontawesome-svg-core' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' - -import {usePalette} from '#/lib/hooks/usePalette' -import {useTheme} from '#/lib/ThemeContext' - -interface Props extends Omit, 'onChange'> { - testID?: string - icon: IconProp - onChange: (v: string) => void -} - -export function TextInput({testID, icon, onChange, ...props}: Props) { - const theme = useTheme() - const pal = usePalette('default') - return ( - - - onChange(v)} - {...props} - /> - - ) -} - -const styles = StyleSheet.create({ - container: { - borderWidth: 1, - borderRadius: 6, - flexDirection: 'row', - alignItems: 'center', - paddingHorizontal: 4, - }, - icon: { - marginLeft: 10, - }, - textInput: { - flex: 1, - width: '100%', - paddingVertical: 10, - paddingHorizontal: 10, - fontSize: 17, - letterSpacing: 0.25, - fontWeight: '400', - borderRadius: 10, - }, -}) -- cgit 1.4.1