diff --git a/webapp/IronCalc/src/components/RightDrawer/NamedRanges/NamedRanges.tsx b/webapp/IronCalc/src/components/RightDrawer/NamedRanges/NamedRanges.tsx index c9dfff7..574da57 100644 --- a/webapp/IronCalc/src/components/RightDrawer/NamedRanges/NamedRanges.tsx +++ b/webapp/IronCalc/src/components/RightDrawer/NamedRanges/NamedRanges.tsx @@ -1,33 +1,51 @@ -import React from 'react'; -import Button from "@mui/material/Button"; -import { styled } from "@mui/material/styles"; +import { Button, Tooltip, styled } from "@mui/material"; +import { t } from "i18next"; +import { BookOpen, Plus } from "lucide-react"; +import type React from "react"; import { theme } from "../../../theme"; interface NamedRangesProps { title?: string; - // Add props as needed for your use case } -const NamedRanges: React.FC = ({ title = "Named Ranges" }) => { +const NamedRanges: React.FC = ({ + title = "Named Ranges", +}) => { return (

{title}

-

This is the Named Ranges component.

-

You can customize this content based on your specific needs.

-
- - Save changes - + + + + + + } + > + {t("name_manager_dialog.new")} +
); }; const Container = styled("div")({ - padding: "16px", height: "100%", display: "flex", flexDirection: "column", @@ -37,30 +55,44 @@ const Content = styled("div")({ flex: 1, color: theme.palette.grey[700], lineHeight: "1.5", - + "& p": { margin: "0 0 12px 0", }, }); -const Divider = styled("div")({ - height: "1px", - width: "100%", - backgroundColor: theme.palette.grey[300], - margin: "0", -}); +const Footer = styled("div")` + padding: 8px; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 12px; + color: ${theme.palette.grey["600"]}; + border-top: 1px solid ${theme.palette.grey["300"]}; +`; -const Footer = styled("div")({ - height: "40px", - display: "flex", - alignItems: "center", - justifyContent: "flex-end", - padding: "0 8px", - flexShrink: 0, -}); +const HelpLink = styled("a")` + display: flex; + align-items: center; + gap: 8px; + font-size: 12px; + font-weight: 400; + font-family: "Inter"; + color: ${theme.palette.grey["600"]}; + text-decoration: none; + &:hover { + text-decoration: underline; + } + svg { + width: 16px; + height: 16px; + color: ${theme.palette.grey["600"]}; + } +`; -const FooterButton = styled(Button)({ - width: "100%", -}); +const NewButton = styled(Button)` + text-transform: none; + min-width: fit-content; +`; export default NamedRanges; diff --git a/webapp/IronCalc/src/components/RightDrawer/RightDrawer.tsx b/webapp/IronCalc/src/components/RightDrawer/RightDrawer.tsx index f968706..0e21154 100644 --- a/webapp/IronCalc/src/components/RightDrawer/RightDrawer.tsx +++ b/webapp/IronCalc/src/components/RightDrawer/RightDrawer.tsx @@ -1,5 +1,4 @@ import Breadcrumbs from "@mui/material/Breadcrumbs"; -import Button from "@mui/material/Button"; import Link from "@mui/material/Link"; import Tooltip from "@mui/material/Tooltip"; import { styled } from "@mui/material/styles"; @@ -28,7 +27,7 @@ const RightDrawer = ({ width = DEFAULT_DRAWER_WIDTH, children, showCloseButton = true, - title = "Right Drawer", + title = "Named Ranges", }: RightDrawerProps) => { if (!isOpen) return null; @@ -39,7 +38,6 @@ const RightDrawer = ({ {title} - Catalog