3-column layout #699
@ -1,5 +1,5 @@
|
|||||||
import "./Deck.css";
|
import "./Deck.css";
|
||||||
import { CSSProperties, createContext, useContext, useEffect, useState } from "react";
|
import { CSSProperties, createContext, useContext, useEffect, useState, lazy } from "react";
|
||||||
import { Outlet, useNavigate } from "react-router-dom";
|
import { Outlet, useNavigate } from "react-router-dom";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import { NostrLink, TaggedNostrEvent } from "@snort/system";
|
import { NostrLink, TaggedNostrEvent } from "@snort/system";
|
||||||
@ -12,7 +12,6 @@ import Articles from "@/Element/Deck/Articles";
|
|||||||
import TimelineFollows from "@/Element/Feed/TimelineFollows";
|
import TimelineFollows from "@/Element/Feed/TimelineFollows";
|
||||||
import { transformTextCached } from "@/Hooks/useTextTransformCache";
|
import { transformTextCached } from "@/Hooks/useTextTransformCache";
|
||||||
import Icon from "@/Icons/Icon";
|
import Icon from "@/Icons/Icon";
|
||||||
import NotificationsPage from "./Notifications";
|
|
||||||
import useImgProxy from "@/Hooks/useImgProxy";
|
import useImgProxy from "@/Hooks/useImgProxy";
|
||||||
import Modal from "@/Element/Modal";
|
import Modal from "@/Element/Modal";
|
||||||
import { Thread } from "@/Element/Event/Thread";
|
import { Thread } from "@/Element/Event/Thread";
|
||||||
@ -23,6 +22,8 @@ import Toaster from "@/Toaster";
|
|||||||
import useLogin from "@/Hooks/useLogin";
|
import useLogin from "@/Hooks/useLogin";
|
||||||
import { LongFormText } from "@/Element/Event/LongFormText";
|
import { LongFormText } from "@/Element/Event/LongFormText";
|
||||||
|
|
||||||
|
const NotificationsPage = lazy(() => import("@/Pages/Notifications"));
|
||||||
|
|
||||||
type Cols = "notes" | "articles" | "media" | "streams" | "notifications";
|
type Cols = "notes" | "articles" | "media" | "streams" | "notifications";
|
||||||
|
|
||||||
interface DeckState {
|
interface DeckState {
|
||||||
|
@ -28,6 +28,7 @@ import { removeUndefined, throwIfOffline } from "@snort/shared";
|
|||||||
import { lazy, Suspense } from "react";
|
import { lazy, Suspense } from "react";
|
||||||
|
|
||||||
const NetworkGraph = lazy(() => import("@/Pages/NetworkGraph"));
|
const NetworkGraph = lazy(() => import("@/Pages/NetworkGraph"));
|
||||||
|
const NotificationsPage = lazy(() => import("@/Pages/Notifications"));
|
||||||
|
|
||||||
import * as serviceWorkerRegistration from "@/serviceWorkerRegistration";
|
import * as serviceWorkerRegistration from "@/serviceWorkerRegistration";
|
||||||
import { IntlProvider } from "@/IntlProvider";
|
import { IntlProvider } from "@/IntlProvider";
|
||||||
@ -35,7 +36,6 @@ import { getCountry, unwrap } from "@/SnortUtils";
|
|||||||
import Layout from "@/Pages/Layout";
|
import Layout from "@/Pages/Layout";
|
||||||
import ProfilePage from "@/Pages/Profile/ProfilePage";
|
import ProfilePage from "@/Pages/Profile/ProfilePage";
|
||||||
import { RootRoutes, RootTabRoutes } from "@/Pages/Root";
|
import { RootRoutes, RootTabRoutes } from "@/Pages/Root";
|
||||||
import NotificationsPage from "@/Pages/Notifications";
|
|
||||||
import SettingsPage, { SettingsRoutes } from "@/Pages/SettingsPage";
|
import SettingsPage, { SettingsRoutes } from "@/Pages/SettingsPage";
|
||||||
import ErrorPage from "@/Pages/ErrorPage";
|
import ErrorPage from "@/Pages/ErrorPage";
|
||||||
import NostrAddressPage from "@/Pages/NostrAddressPage";
|
import NostrAddressPage from "@/Pages/NostrAddressPage";
|
||||||
|
Loading…
Reference in New Issue
Block a user