From 66e2f692e086fc915dc5d8a039332aaba1c7ea53 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 7 Nov 2024 14:27:56 +0000 Subject: [PATCH] Delete EmptyStateWithButton.tsx --- src/view/com/util/EmptyStateWithButton.tsx | 88 ---------------------- 1 file changed, 88 deletions(-) delete mode 100644 src/view/com/util/EmptyStateWithButton.tsx diff --git a/src/view/com/util/EmptyStateWithButton.tsx b/src/view/com/util/EmptyStateWithButton.tsx deleted file mode 100644 index 5c6ce94a68..0000000000 --- a/src/view/com/util/EmptyStateWithButton.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import {StyleSheet, View} from 'react-native' -import {type IconProp} from '@fortawesome/fontawesome-svg-core' -import { - FontAwesomeIcon, - type FontAwesomeIconStyle, -} from '@fortawesome/react-native-fontawesome' - -import {usePalette} from '#/lib/hooks/usePalette' -import {s} from '#/lib/styles' -import {Button} from './forms/Button' -import {Text} from './text/Text' - -interface Props { - testID?: string - icon: IconProp - message: string - buttonLabel: string - onPress: () => void -} - -export function EmptyStateWithButton(props: Props) { - const pal = usePalette('default') - const palInverted = usePalette('inverted') - - return ( - - - - - - {props.message} - - - - - - ) -} -const styles = StyleSheet.create({ - container: { - height: '100%', - paddingVertical: 40, - paddingHorizontal: 30, - }, - iconContainer: { - marginBottom: 16, - }, - icon: { - marginLeft: 'auto', - marginRight: 'auto', - }, - btns: { - flexDirection: 'row', - justifyContent: 'center', - }, - btn: { - gap: 10, - marginVertical: 20, - flexDirection: 'row', - alignItems: 'center', - paddingVertical: 14, - paddingHorizontal: 24, - borderRadius: 30, - }, - notice: { - borderRadius: 12, - paddingHorizontal: 12, - paddingVertical: 10, - marginHorizontal: 30, - }, -})