From 6213e439fad930ee4cb513d86c512315f7831cbc Mon Sep 17 00:00:00 2001 From: Elias Biagioni Date: Fri, 6 Dec 2024 12:26:12 -0300 Subject: [PATCH] Remove text file --- .../mobile/react-native/src/components/text.tsx | 12 ------------ .../src/screens/auth/forgot-password.tsx | 7 +++---- .../react-native/src/screens/auth/reset-password.tsx | 7 +++---- 3 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 {{cookiecutter.project_slug}}/clients/mobile/react-native/src/components/text.tsx diff --git a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/components/text.tsx b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/components/text.tsx deleted file mode 100644 index 33bb070c3..000000000 --- a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/components/text.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import { FC } from 'react' -import { Text as TextRN, TextProps } from 'react-native' -import { fontFamilyWeightMap, FontWeightStyle } from '@utils/fonts' - -export const Text: FC< - Omit & { variant?: FontWeightStyle; textClassName?: string } -> = ({ variant = 'regular', textClassName = '', ...props }) => { - const style = { - fontFamily: fontFamilyWeightMap[variant], - } - return -} diff --git a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/forgot-password.tsx b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/forgot-password.tsx index a5640b0f2..d4b396bfd 100644 --- a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/forgot-password.tsx +++ b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/forgot-password.tsx @@ -1,6 +1,5 @@ import { MultiPlatformSafeAreaView } from '@components/multi-platform-safe-area-view' import { BounceableWind } from '@components/styled' -import { Text } from '@components/text' import { TextFormField } from '@components/text-form-field' import { ForgotPasswordInput, @@ -9,7 +8,7 @@ import { userApi, } from '@services/user' import { FormProvider, useTnForm } from '@thinknimble/tn-forms-react' -import { ScrollView, View } from 'react-native' +import { ScrollView, Text, View } from 'react-native' import { getNavio } from '../routes' const ForgotPasswordInner = () => { @@ -33,7 +32,7 @@ const ForgotPasswordInner = () => { return ( - + Reset Password @@ -45,7 +44,7 @@ const ForgotPasswordInner = () => { disabled={!form.isValid} > - + Reset Password diff --git a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/reset-password.tsx b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/reset-password.tsx index 062107db2..3dce0cb61 100644 --- a/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/reset-password.tsx +++ b/{{cookiecutter.project_slug}}/clients/mobile/react-native/src/screens/auth/reset-password.tsx @@ -1,10 +1,9 @@ import { MultiPlatformSafeAreaView } from '@components/multi-platform-safe-area-view' import { BounceableWind } from '@components/styled' -import { Text } from '@components/text' import { TextFormField } from '@components/text-form-field' import { ResetPasswordForm, ResetPasswordInput, TResetPasswordForm, userApi } from '@services/user' import { FormProvider, useTnForm } from '@thinknimble/tn-forms-react' -import { ScrollView, View } from 'react-native' +import { ScrollView, Text, View } from 'react-native' import { getNavio } from '../routes' import { useAuth } from '@stores/auth' @@ -37,7 +36,7 @@ const ResetPasswordInner = () => { return ( - + Reset Password @@ -52,7 +51,7 @@ const ResetPasswordInner = () => { disabled={!form.isValid} > - + Reset Password