From 4c60d4d07014c4970dfdb7f6272ab2abadf035b9 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 20 Mar 2024 15:42:39 +0000 Subject: remove unnecessary group component --- src/screens/Login/ChooseAccountForm.tsx | 50 +++++++++++---------------------- 1 file changed, 17 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/screens/Login/ChooseAccountForm.tsx b/src/screens/Login/ChooseAccountForm.tsx index 6e32d472e..600a640ca 100644 --- a/src/screens/Login/ChooseAccountForm.tsx +++ b/src/screens/Login/ChooseAccountForm.tsx @@ -2,7 +2,6 @@ import React from 'react' import {View} from 'react-native' import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import flattenReactChildren from 'react-keyed-flatten-children' import {useAnalytics} from 'lib/analytics/analytics' import {UserAvatar} from '../../view/com/util/UserAvatar' @@ -20,30 +19,6 @@ import * as TextField from '#/components/forms/TextField' import {FormContainer} from './FormContainer' import {logEvent} from '#/lib/statsig/statsig' -function Group({children}: {children: React.ReactNode}) { - const t = useTheme() - return ( - - {flattenReactChildren(children).map((child, i) => { - return React.isValidElement(child) ? ( - - {i > 0 ? ( - - ) : null} - {child} - - ) : null - })} - - ) -} - function AccountItem({ account, onSelect, @@ -150,14 +125,23 @@ export const ChooseAccountForm = ({ Sign in as... - + {accounts.map(account => ( - + <> + + + ))} - +