Skip to content

Commit

Permalink
enhancement(frontend): updated is_demo banner text
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Dec 7, 2024
1 parent d7eff81 commit bf27b5c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions agenta-web/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useEffect, useMemo, useState} from "react"
import {Breadcrumb, Button, ConfigProvider, Layout, Modal, Space, Typography, theme} from "antd"
import {Breadcrumb, ConfigProvider, Layout, Modal, Space, Typography, theme} from "antd"
import Sidebar from "../Sidebar/Sidebar"
import {GithubFilled, LinkedinFilled, TwitterOutlined} from "@ant-design/icons"
import Link from "next/link"
Expand Down Expand Up @@ -86,15 +86,13 @@ const useStyles = createUseStyles((theme: JSSTheme) => ({
display: "flex",
alignItems: "center",
justifyContent: "center",
gap: 8,
gap: 6,
color: "#fff",
fontSize: 12,
lineHeight: "20px",
fontWeight: 500,
"& .ant-btn": {
"& span": {
fontWeight: 600,
color: "#fff",
padding: 0,
},
},
}))
Expand Down Expand Up @@ -220,10 +218,14 @@ const App: React.FC<LayoutProps> = ({children}) => {
<div>
{project?.is_demo && (
<div className={classes.banner}>
You are viewing demo workspace. To go back to your workspace,{" "}
<Button type="link" onClick={handleBackToWorkspaceSwitch}>
Click here.
</Button>
You are in <span>a view-only</span> demo workspace. To go back
to your workspace{" "}
<span
className="cursor-pointer"
onClick={handleBackToWorkspaceSwitch}
>
click here
</span>
</div>
)}
<Layout hasSider className={classes.layout}>
Expand Down

0 comments on commit bf27b5c

Please sign in to comment.