1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Files
tooot/src/screens/Me/Root.tsx
2020-11-21 13:32:29 +01:00

18 lines
404 B
TypeScript

import React from 'react'
import { View } from 'react-native'
import { useSelector } from 'react-redux'
import { RootState } from 'src/store'
import Login from './Root/Login'
const ScreenMeRoot: React.FC = () => {
const localRegistered = useSelector(
(state: RootState) => state.instances.local.url
)
return <View>{localRegistered ? <></> : <Login />}</View>
}
export default ScreenMeRoot