perf(react): remove lazy imports again
Some checks failed
/ build-web (push) Successful in 4m52s
/ build-mobile (push) Failing after 8m36s
/ build-desktop (linux) (push) Successful in 7m46s
/ release (push) Has been skipped

This commit is contained in:
Alois 2026-08-31 23:09:02 +02:00
commit e0c2331af3
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
8 changed files with 82 additions and 121 deletions

View file

@ -28,6 +28,7 @@ import { useState } from "react";
import { SidebarTrigger, useSidebar } from "@methanium/ui";
import { WindowControls as Controls } from "@methanium/ui";
import { useSession } from "@tensamin/identity/session";
import { joinCall } from "@tensamin/call/store";
import Profile from "./modals/profile";
export default function Navbar({ forMobile }: { forMobile: boolean }) {
@ -139,11 +140,7 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
{currentCalls.length === 0 ? (
<Button
disabled={callState !== "closed"}
onClick={() => {
void import("@tensamin/call/store").then(({ joinCall }) =>
joinCall(id),
);
}}
onClick={() => void joinCall(id)}
className="w-9 h-9! aspect-square rounded-lg"
variant="outline"
>
@ -153,12 +150,10 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
<Button
disabled={callState !== "closed"}
onClick={() => {
void import("@tensamin/call/store").then(({ joinCall }) =>
joinCall(
id,
currentCalls[0].CallSecret,
currentCalls[0].CallId,
),
void joinCall(
id,
currentCalls[0].CallSecret,
currentCalls[0].CallId,
);
}}
className="w-9 h-9! aspect-square rounded-lg"
@ -185,12 +180,9 @@ export default function Navbar({ forMobile }: { forMobile: boolean }) {
<SelectItem
value={call.CallId}
key={call.CallId}
onSelect={() => {
void import("@tensamin/call/store").then(
({ joinCall }) =>
joinCall(id, call.CallSecret, call.CallId),
);
}}
onSelect={() =>
void joinCall(id, call.CallSecret, call.CallId)
}
>
{displayCallId(call.CallId)}
</SelectItem>