Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(frontend)[Age 1401]: Collapsible side menu #2397

Merged
merged 19 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions agenta-web/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React, {useEffect, useMemo, useState} from "react"
import {Breadcrumb, Button, ConfigProvider, Layout, Modal, Space, Typography, theme} from "antd"
import Sidebar from "../Sidebar/Sidebar"
import {
Breadcrumb,
Button,
ConfigProvider,
Layout,
Modal,
Skeleton,
Space,
Typography,
theme,
} from "antd"
import {GithubFilled, LinkedinFilled, TwitterOutlined} from "@ant-design/icons"
import Link from "next/link"
import {isDemo} from "@/lib/helpers/utils"
Expand All @@ -18,7 +27,9 @@ import {JSSTheme, StyleProps as MainStyleProps} from "@/lib/Types"
import {Lightning} from "@phosphor-icons/react"
import packageJsonData from "../../../package.json"
import {useProjectData} from "@/contexts/project.context"
import {dynamicContext} from "@/lib/helpers/dynamic"
import {dynamicComponent, dynamicContext} from "@/lib/helpers/dynamic"

const Sidebar: any = dynamicComponent("Sidebar/Sidebar", () => <Skeleton className="w-[236px]" />)

const {Content, Footer} = Layout
const {Text} = Typography
Expand Down
9 changes: 1 addition & 8 deletions agenta-web/src/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ const Logo: React.FC<Partial<React.ComponentProps<typeof Image>> & {isOnlyIconLo

const logoSrc = useMemo(() => LOGOS[appTheme], [appTheme])
return isOnlyIconLogo ? (
<Image
width={40}
height={51}
{...imageProps}
src={logoSrc.onlyIcon}
style={{marginRight: "-20px"}}
alt="Agenta Logo"
/>
<Image width={40} height={51} {...imageProps} src={logoSrc.onlyIcon} alt="Agenta Logo" />
) : (
<Image width={154.8} height={51} {...imageProps} src={logoSrc.complete} alt="Agenta Logo" />
)
Expand Down
Loading
Loading