Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

Refactor PageLayout export (#5801)

authored by yoginth.com and committed by

GitHub f0c5ff50 d3081ed1

+38 -36
+1 -1
apps/web/src/components/Account/Shimmer.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import GraphStatsShimmer from "@/components/Shared/Shimmer/GraphStatsShimmer"; 3 3 import PostsShimmer from "@/components/Shared/Shimmer/PostsShimmer"; 4 4 import Skeleton from "@/components/Shared/Skeleton";
+1 -1
apps/web/src/components/Account/index.tsx
··· 2 2 import Custom404 from "@/components/Shared/404"; 3 3 import Custom500 from "@/components/Shared/500"; 4 4 import Cover from "@/components/Shared/Cover"; 5 - import { PageLayout } from "@/components/Shared/PageLayout"; 5 + import PageLayout from "@/components/Shared/PageLayout"; 6 6 import { EmptyState } from "@/components/Shared/UI"; 7 7 import { 8 8 getBlockedByMeMessage,
+1 -1
apps/web/src/components/Bookmarks/index.tsx
··· 1 1 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import ContentFeedType from "@/components/Shared/Post/ContentFeedType"; 4 4 import { useAccountStore } from "@/store/persisted/useAccountStore"; 5 5 import type { MainContentFocus } from "@hey/indexer";
+1 -1
apps/web/src/components/Explore/index.tsx
··· 1 1 import Footer from "@/components/Shared/Footer"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import ContentFeedType from "@/components/Shared/Post/ContentFeedType"; 4 4 import WhoToFollow from "@/components/Shared/Sidebar/WhoToFollow"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore";
+1 -1
apps/web/src/components/Group/Settings/Monetize/index.tsx
··· 2 2 import Custom500 from "@/components/Shared/500"; 3 3 import BackButton from "@/components/Shared/BackButton"; 4 4 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 5 - import { PageLayout } from "@/components/Shared/PageLayout"; 5 + import PageLayout from "@/components/Shared/PageLayout"; 6 6 import ProFeatureNotice from "@/components/Shared/ProFeatureNotice"; 7 7 import { Card, CardHeader } from "@/components/Shared/UI"; 8 8 import { useAccountStore } from "@/store/persisted/useAccountStore";
+1 -1
apps/web/src/components/Group/Settings/Personalize/index.tsx
··· 1 1 import Custom404 from "@/components/Shared/404"; 2 2 import Custom500 from "@/components/Shared/500"; 3 3 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 4 - import { PageLayout } from "@/components/Shared/PageLayout"; 4 + import PageLayout from "@/components/Shared/PageLayout"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import { useGroupQuery } from "@hey/indexer"; 7 7 import { useParams } from "react-router";
+1 -1
apps/web/src/components/Group/Settings/Rules/index.tsx
··· 2 2 import Custom500 from "@/components/Shared/500"; 3 3 import BackButton from "@/components/Shared/BackButton"; 4 4 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 5 - import { PageLayout } from "@/components/Shared/PageLayout"; 5 + import PageLayout from "@/components/Shared/PageLayout"; 6 6 import { Card, CardHeader } from "@/components/Shared/UI"; 7 7 import { useAccountStore } from "@/store/persisted/useAccountStore"; 8 8 import { useGroupQuery } from "@hey/indexer";
+1 -1
apps/web/src/components/Group/Settings/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import { Card, CardHeader } from "@/components/Shared/UI"; 4 4 import { 5 5 AdjustmentsHorizontalIcon,
+1 -1
apps/web/src/components/Group/Shimmer.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import GraphStatsShimmer from "@/components/Shared/Shimmer/GraphStatsShimmer"; 3 3 import PostsShimmer from "@/components/Shared/Shimmer/PostsShimmer"; 4 4 import Skeleton from "@/components/Shared/Skeleton";
+1 -1
apps/web/src/components/Group/index.tsx
··· 2 2 import Custom404 from "@/components/Shared/404"; 3 3 import Custom500 from "@/components/Shared/500"; 4 4 import Cover from "@/components/Shared/Cover"; 5 - import { PageLayout } from "@/components/Shared/PageLayout"; 5 + import PageLayout from "@/components/Shared/PageLayout"; 6 6 import { WarningMessage } from "@/components/Shared/UI"; 7 7 import { useAccountStore } from "@/store/persisted/useAccountStore"; 8 8 import { STATIC_IMAGES_URL } from "@hey/data/constants";
+1 -1
apps/web/src/components/Groups/index.tsx
··· 1 1 import Footer from "@/components/Shared/Footer"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import { GroupsFeedType } from "@hey/data/enums";
+1 -1
apps/web/src/components/Home/index.tsx
··· 1 1 import NewPost from "@/components/Composer/NewPost"; 2 2 import ExploreFeed from "@/components/Explore/ExploreFeed"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { useAccountStore } from "@/store/persisted/useAccountStore"; 5 5 import { useHomeTabStore } from "@/store/persisted/useHomeTabStore"; 6 6 import { HomeFeedType } from "@hey/data/enums";
+1 -1
apps/web/src/components/Notification/index.tsx
··· 1 1 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import { useAccountStore } from "@/store/persisted/useAccountStore"; 4 4 import { NotificationFeedType } from "@hey/data/enums"; 5 5 import { useState } from "react";
+1 -1
apps/web/src/components/Pages/Copyright.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { H2, H4 } from "@/components/Shared/UI"; 3 3 import { Link } from "react-router"; 4 4
+1 -1
apps/web/src/components/Pages/Guidelines.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { H2, H4 } from "@/components/Shared/UI"; 3 3 import { Link } from "react-router"; 4 4
+1 -1
apps/web/src/components/Pages/Privacy.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { H2, H4 } from "@/components/Shared/UI"; 3 3 import { Link } from "react-router"; 4 4
+1 -1
apps/web/src/components/Pages/Support.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { Card, H3 } from "@/components/Shared/UI"; 3 3 import { Link } from "react-router"; 4 4
+1 -1
apps/web/src/components/Pages/Terms.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { H2, H4 } from "@/components/Shared/UI"; 3 3 import { Link } from "react-router"; 4 4
+1 -1
apps/web/src/components/Post/Shimmer.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import Footer from "@/components/Shared/Footer"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import PostShimmer from "@/components/Shared/Shimmer/PostShimmer"; 5 5 import PostsShimmer from "@/components/Shared/Shimmer/PostsShimmer"; 6 6 import SingleAccountShimmer from "@/components/Shared/Shimmer/SingleAccountShimmer";
+1 -1
apps/web/src/components/Post/index.tsx
··· 5 5 import SingleAccount from "@/components/Shared/Account/SingleAccount"; 6 6 import BackButton from "@/components/Shared/BackButton"; 7 7 import Footer from "@/components/Shared/Footer"; 8 - import { PageLayout } from "@/components/Shared/PageLayout"; 8 + import PageLayout from "@/components/Shared/PageLayout"; 9 9 import { Card, CardHeader, WarningMessage } from "@/components/Shared/UI"; 10 10 import { usePostLinkStore } from "@/store/non-persisted/navigation/usePostLinkStore"; 11 11 import { useAccountStore } from "@/store/persisted/useAccountStore";
+1 -1
apps/web/src/components/Search/index.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { default as SearchInput } from "@/components/Shared/Search"; 3 3 import Sidebar from "@/components/Shared/Sidebar"; 4 4 import { MagnifyingGlassIcon } from "@heroicons/react/24/outline";
+1 -1
apps/web/src/components/Settings/Blocked/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card, CardHeader } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import List from "./List";
+1 -1
apps/web/src/components/Settings/Developer/index.tsx
··· 1 1 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import { useAccountStore } from "@/store/persisted/useAccountStore"; 4 4 import Tokens from "./Tokens"; 5 5
+1 -1
apps/web/src/components/Settings/Funds/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card, CardHeader } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import Balances from "./Balances";
+1 -1
apps/web/src/components/Settings/Manager/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import WrongWallet from "@/components/Shared/Settings/WrongWallet"; 5 5 import { Card, CardHeader } from "@/components/Shared/UI"; 6 6 import { useAccountStore } from "@/store/persisted/useAccountStore";
+1 -1
apps/web/src/components/Settings/Monetize/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import ProFeatureNotice from "@/components/Shared/ProFeatureNotice"; 5 5 import { Card, CardHeader } from "@/components/Shared/UI"; 6 6 import { useAccountStore } from "@/store/persisted/useAccountStore";
+1 -1
apps/web/src/components/Settings/Personalize/index.tsx
··· 1 1 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 2 - import { PageLayout } from "@/components/Shared/PageLayout"; 2 + import PageLayout from "@/components/Shared/PageLayout"; 3 3 import { useAccountStore } from "@/store/persisted/useAccountStore"; 4 4 import PersonalizeSettingsForm from "./Form"; 5 5
+1 -1
apps/web/src/components/Settings/Preferences/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card, CardHeader } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import AppIcon from "./AppIcon";
+1 -1
apps/web/src/components/Settings/Sessions/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card, CardHeader } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import List from "./List";
+1 -1
apps/web/src/components/Settings/Username/index.tsx
··· 1 1 import BackButton from "@/components/Shared/BackButton"; 2 2 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 3 - import { PageLayout } from "@/components/Shared/PageLayout"; 3 + import PageLayout from "@/components/Shared/PageLayout"; 4 4 import { Card, CardHeader } from "@/components/Shared/UI"; 5 5 import { useAccountStore } from "@/store/persisted/useAccountStore"; 6 6 import LinkUsername from "./LinkUsername";
+1 -1
apps/web/src/components/Settings/index.tsx
··· 1 1 import SingleAccount from "@/components/Shared/Account/SingleAccount"; 2 2 import BackButton from "@/components/Shared/BackButton"; 3 3 import NotLoggedIn from "@/components/Shared/NotLoggedIn"; 4 - import { PageLayout } from "@/components/Shared/PageLayout"; 4 + import PageLayout from "@/components/Shared/PageLayout"; 5 5 import { Card, CardHeader } from "@/components/Shared/UI"; 6 6 import { useAccountStore } from "@/store/persisted/useAccountStore"; 7 7 import {
+1 -1
apps/web/src/components/Shared/404.tsx
··· 1 1 import { Button, H3 } from "@/components/Shared/UI"; 2 2 import { Link } from "react-router"; 3 - import { PageLayout } from "./PageLayout"; 3 + import PageLayout from "./PageLayout"; 4 4 5 5 const Custom404 = () => { 6 6 return (
+1 -1
apps/web/src/components/Shared/500.tsx
··· 1 - import { PageLayout } from "./PageLayout"; 1 + import PageLayout from "./PageLayout"; 2 2 import SiteError from "./SiteError"; 3 3 4 4 const Custom500 = () => {
+1 -1
apps/web/src/components/Shared/NotLoggedIn.tsx
··· 1 1 import LoginButton from "@/components/Shared/LoginButton"; 2 2 import { H3 } from "@/components/Shared/UI"; 3 3 import Footer from "./Footer"; 4 - import { PageLayout } from "./PageLayout"; 4 + import PageLayout from "./PageLayout"; 5 5 6 6 const NotLoggedIn = () => { 7 7 return (
+3 -1
apps/web/src/components/Shared/PageLayout.tsx
··· 34 34 zeroTopMargin?: boolean; 35 35 } 36 36 37 - export const PageLayout = ({ 37 + const PageLayout = ({ 38 38 title, 39 39 children, 40 40 sidebar = <Sidebar />, ··· 66 66 </> 67 67 ); 68 68 }; 69 + 70 + export default PageLayout;
+1 -1
apps/web/src/components/Staff/index.tsx
··· 1 - import { PageLayout } from "@/components/Shared/PageLayout"; 1 + import PageLayout from "@/components/Shared/PageLayout"; 2 2 import { useAccountStore } from "@/store/persisted/useAccountStore"; 3 3 import Custom404 from "../Shared/404"; 4 4 import Overview from "./Overview";