Skip to content

Commit

Permalink
fix(frontend): sidebar import issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaerzin committed Feb 5, 2025
1 parent 79b80e8 commit 2d4dd18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion agenta-web/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {memo, useEffect, useMemo} from "react"

import clsx from "clsx"
import dynamic from "next/dynamic"

import {Button, ConfigProvider, Layout, Modal, Skeleton, Space, Typography, theme} from "antd"
import {GithubFilled, LinkedinFilled, TwitterOutlined} from "@ant-design/icons"
Expand All @@ -24,7 +25,10 @@ import {useStyles, type StyleProps} from "./assets/styles"
import {BreadcrumbContainer} from "./assets/Breadcrumbs"
import {useVariants} from "@/lib/hooks/useVariants"

const Sidebar: any = dynamicComponent("Sidebar/Sidebar", () => <Skeleton className="w-[236px]" />)
const Sidebar: any = dynamic(() => import("../Sidebar/Sidebar"), {
ssr: false,
loading: () => <Skeleton className="w-[236px]" />,
})

const {Content, Footer} = Layout
const {Text} = Typography
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useEffect, useMemo, useState} from "react"
import {memo, useEffect, useMemo, useState} from "react"
import {useRouter} from "next/router"
import {Button, Divider, Dropdown, Layout, Typography} from "antd"
import Logo from "../Logo/Logo"
Expand Down

0 comments on commit 2d4dd18

Please sign in to comment.