mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-07 14:09:07 +02:00
refactor, lint, cleanup
This commit is contained in:
@@ -5,13 +5,6 @@ import { DebugBundleProvider } from "@/contexts/DebugBundleContext.tsx";
|
||||
import { ProfileProvider } from "@/contexts/ProfileContext.tsx";
|
||||
import { DialogProvider } from "@/contexts/DialogContext.tsx";
|
||||
|
||||
// Shared shell for every in-window route (main + settings). Owns the daemon-
|
||||
// availability gate (via StatusProvider) and the providers every page needs.
|
||||
// Order matters: SettingsContext depends on ProfileContext; ClientVersionContext
|
||||
// reads StatusContext events.
|
||||
//
|
||||
// Page-specific surface (the main Header, the settings draggable strip,
|
||||
// view-mode + nav-section providers) lives inside the page components, not here.
|
||||
export const AppLayout = () => {
|
||||
return (
|
||||
<div className={"relative flex h-full flex-col"}>
|
||||
|
||||
@@ -9,9 +9,6 @@ type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
// iOS-style push transition: incoming pane slides in from the right while
|
||||
// the outgoing pane shifts slightly left. Same easing on both sides so
|
||||
// they feel like one motion.
|
||||
const PANEL_TRANSITION = {
|
||||
duration: 0.32,
|
||||
ease: [0.32, 0.72, 0, 1] as [number, number, number, number],
|
||||
|
||||
Reference in New Issue
Block a user