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