Cleanup
This commit is contained in:
+4
-4
@@ -7,7 +7,7 @@ import {RootSiblingParent} from 'react-native-root-siblings'
|
||||
|
||||
import 'view/icons'
|
||||
|
||||
import {ThemeProvider as Nova} from '#/view/nova'
|
||||
import {ThemeProvider as Alf} from '#/alf'
|
||||
import {init as initPersistedState} from '#/state/persisted'
|
||||
import {useColorMode} from 'state/shell'
|
||||
import {Shell} from 'view/shell/index'
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
} from 'state/session'
|
||||
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
||||
import * as persisted from '#/state/persisted'
|
||||
import {useColorModeTheme} from '#/view/nova/util/useColorModeTheme'
|
||||
import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
|
||||
|
||||
function InnerApp() {
|
||||
const {isInitialLoad, currentAccount} = useSession()
|
||||
@@ -47,7 +47,7 @@ function InnerApp() {
|
||||
if (isInitialLoad) return null
|
||||
|
||||
return (
|
||||
<Nova theme={theme}>
|
||||
<Alf theme={theme}>
|
||||
<React.Fragment
|
||||
// Resets the entire tree below when it changes:
|
||||
key={currentAccount?.did}>
|
||||
@@ -65,7 +65,7 @@ function InnerApp() {
|
||||
</UnreadNotifsProvider>
|
||||
</LoggedOutViewProvider>
|
||||
</React.Fragment>
|
||||
</Nova>
|
||||
</Alf>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import {View} from 'react-native'
|
||||
import {styled} from '#/view/nova/system'
|
||||
import {styled} from '#/alf/system'
|
||||
export const Box = styled(View)
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Pressable} from 'react-native'
|
||||
import {styled} from '#/view/nova/system'
|
||||
import {styled} from '#/alf/system'
|
||||
|
||||
export const Button = styled(Pressable, {
|
||||
px: 'l',
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Text as RNText} from 'react-native'
|
||||
import {styled} from '#/view/nova/system'
|
||||
import {web} from '#/view/nova/util/platform'
|
||||
import {styled} from '#/alf/system'
|
||||
import {web} from '#/alf/util/platform'
|
||||
|
||||
export const Text = styled(RNText, {
|
||||
color: 'l7',
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from '#/alf/system'
|
||||
export * from '#/alf/components/Box'
|
||||
export * from '#/alf/components/Typography'
|
||||
export * from '#/alf/components/Button'
|
||||
@@ -1,4 +0,0 @@
|
||||
export * from '#/view/nova/system'
|
||||
export * from '#/view/nova/components/Box'
|
||||
export * from '#/view/nova/components/Typography'
|
||||
export * from '#/view/nova/components/Button'
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
H4,
|
||||
H5,
|
||||
H6,
|
||||
} from '#/view/nova'
|
||||
} from '#/alf'
|
||||
|
||||
function ThemeSelector() {
|
||||
const setColorMode = useSetColorMode()
|
||||
|
||||
Reference in New Issue
Block a user