mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Restructure the project
This commit is contained in:
14
src/screens/Me/Root.tsx
Normal file
14
src/screens/Me/Root.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react'
|
||||
import { View } from 'react-native'
|
||||
import store from 'src/store'
|
||||
import { getLocalRegistered } from 'src/utils/slices/instancesSlice'
|
||||
|
||||
import Login from './Root/Login'
|
||||
|
||||
const ScreenMeRoot: React.FC = () => {
|
||||
const localRegistered = getLocalRegistered(store.getState())
|
||||
|
||||
return <View>{localRegistered ? <></> : <Login />}</View>
|
||||
}
|
||||
|
||||
export default ScreenMeRoot
|
Reference in New Issue
Block a user