3-column layout #699

Merged
mmalmi merged 68 commits from mmalmi/snort:main into main 2023-11-27 15:22:53 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit d8dfc962c1 - Show all commits

View File

@ -1,5 +1,5 @@
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 { FormattedMessage } from "react-intl";
import { NostrLink, TaggedNostrEvent } from "@snort/system";
@ -12,7 +12,6 @@ import Articles from "@/Element/Deck/Articles";
import TimelineFollows from "@/Element/Feed/TimelineFollows";
import { transformTextCached } from "@/Hooks/useTextTransformCache";
import Icon from "@/Icons/Icon";
import NotificationsPage from "./Notifications";
import useImgProxy from "@/Hooks/useImgProxy";
import Modal from "@/Element/Modal";
import { Thread } from "@/Element/Event/Thread";
@ -23,6 +22,8 @@ import Toaster from "@/Toaster";
import useLogin from "@/Hooks/useLogin";
import { LongFormText } from "@/Element/Event/LongFormText";
const NotificationsPage = lazy(() => import("@/Pages/Notifications"));
type Cols = "notes" | "articles" | "media" | "streams" | "notifications";
interface DeckState {

View File

@ -28,6 +28,7 @@ import { removeUndefined, throwIfOffline } from "@snort/shared";
import { lazy, Suspense } from "react";
const NetworkGraph = lazy(() => import("@/Pages/NetworkGraph"));
const NotificationsPage = lazy(() => import("@/Pages/Notifications"));
import * as serviceWorkerRegistration from "@/serviceWorkerRegistration";
import { IntlProvider } from "@/IntlProvider";
@ -35,7 +36,6 @@ import { getCountry, unwrap } from "@/SnortUtils";
import Layout from "@/Pages/Layout";
import ProfilePage from "@/Pages/Profile/ProfilePage";
import { RootRoutes, RootTabRoutes } from "@/Pages/Root";
import NotificationsPage from "@/Pages/Notifications";
import SettingsPage, { SettingsRoutes } from "@/Pages/SettingsPage";
import ErrorPage from "@/Pages/ErrorPage";
import NostrAddressPage from "@/Pages/NostrAddressPage";