(feat): remove mtp loading screen
(fix): weird dedupe bugs (qol): update todo
This commit is contained in:
parent
8bff0f503f
commit
69149b73bd
6 changed files with 86 additions and 61 deletions
|
|
@ -25,13 +25,13 @@ import CallPopout from "@tensamin/call/popout";
|
|||
import ChatContext from "@tensamin/chat/context";
|
||||
import { useInitializeCall } from "@tensamin/call/store";
|
||||
import { Provider as MTPProvider } from "@tensamin/mtp";
|
||||
import UserContext from "@tensamin/user/context";
|
||||
import UserProvider from "@tensamin/user/context";
|
||||
import DeeplinkContext from "@tensamin/tauri/deeplinkHandler";
|
||||
import NotificationsProvider from "@tensamin/notifications/context";
|
||||
|
||||
import TAuthWrapper from "@tensamin/tauth/context";
|
||||
|
||||
import { ThemeProvider, useTheme } from "@tensamin/ui";
|
||||
import { ErrorScreen, ThemeProvider, useTheme } from "@tensamin/ui";
|
||||
import z from "zod";
|
||||
|
||||
import { useEffect, useRef, useState, type ReactNode } from "react";
|
||||
|
|
@ -256,7 +256,7 @@ function AppShell() {
|
|||
return (
|
||||
<MTPProvider>
|
||||
<Session>
|
||||
<UserContext>
|
||||
<UserProvider>
|
||||
<CallInit />
|
||||
<CallPopout />
|
||||
<TAuthWrapper>
|
||||
|
|
@ -268,7 +268,7 @@ function AppShell() {
|
|||
</ChatContext>
|
||||
</AppLayout>
|
||||
</TAuthWrapper>
|
||||
</UserContext>
|
||||
</UserProvider>
|
||||
</Session>
|
||||
</MTPProvider>
|
||||
);
|
||||
|
|
@ -281,6 +281,12 @@ function CallInit() {
|
|||
|
||||
const rootRoute = createRootRoute({
|
||||
component: RootShell,
|
||||
errorComponent: ({ error }: { error: Error }) => (
|
||||
<ErrorScreen
|
||||
description={error.message}
|
||||
error={"Error in TanStack Router: " + error.name}
|
||||
/>
|
||||
),
|
||||
});
|
||||
|
||||
const appRoute = createRoute({
|
||||
|
|
|
|||
|
|
@ -114,6 +114,9 @@ export default defineConfig({
|
|||
"@tensamin/crypto",
|
||||
"@tensamin/storage",
|
||||
"@tensamin/mtp",
|
||||
"@tensamin/user",
|
||||
"@tensamin/tauri",
|
||||
"@tensamin/chat",
|
||||
"@codemirror/commands",
|
||||
"@codemirror/lang-markdown",
|
||||
"@codemirror/state",
|
||||
|
|
|
|||
Loading…
Reference in a new issue