From d3fdd5f85abf6867a14f5386d7879eb22ffe7588 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sun, 15 Sep 2024 23:59:42 -0700 Subject: [PATCH] FF: Sidebar: Better Icon --- .../components/icons/WindowPaneRightClose.tsx | 13 +++++++++++++ src/common/components/icons/WindowPaneRightOpen.tsx | 11 +++++++++++ src/common/layout/optima/bar/OptimaBar.tsx | 4 +++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/common/components/icons/WindowPaneRightClose.tsx create mode 100644 src/common/components/icons/WindowPaneRightOpen.tsx diff --git a/src/common/components/icons/WindowPaneRightClose.tsx b/src/common/components/icons/WindowPaneRightClose.tsx new file mode 100644 index 000000000..5517a36ae --- /dev/null +++ b/src/common/components/icons/WindowPaneRightClose.tsx @@ -0,0 +1,13 @@ +// import * as React from 'react'; +// +// import { SvgIcon, SvgIconProps } from '@mui/joy'; +// +// export function WindowPaneRightClose(props: SvgIconProps) { +// return ( +// +// +// {/* thin */} +// {/* normal */} +// +// ); +// } \ No newline at end of file diff --git a/src/common/components/icons/WindowPaneRightOpen.tsx b/src/common/components/icons/WindowPaneRightOpen.tsx new file mode 100644 index 000000000..645722908 --- /dev/null +++ b/src/common/components/icons/WindowPaneRightOpen.tsx @@ -0,0 +1,11 @@ +import * as React from 'react'; + +import { SvgIcon, SvgIconProps } from '@mui/joy'; + +export function WindowPaneRightOpen(props: SvgIconProps) { + return ( + + + + ); +} \ No newline at end of file diff --git a/src/common/layout/optima/bar/OptimaBar.tsx b/src/common/layout/optima/bar/OptimaBar.tsx index f42db0707..28e0c0633 100644 --- a/src/common/layout/optima/bar/OptimaBar.tsx +++ b/src/common/layout/optima/bar/OptimaBar.tsx @@ -17,6 +17,7 @@ import { Brand } from '~/common/app.config'; import { CloseableMenu } from '~/common/components/CloseableMenu'; import { Link } from '~/common/components/Link'; import { ROUTE_INDEX } from '~/common/app.routes'; +import { WindowPaneRightOpen } from '~/common/components/icons/WindowPaneRightOpen'; import { checkVisibleNav, NavItemApp } from '~/common/app.nav'; import { InvertedBar, InvertedBarCornerItem } from '../InvertedBar'; @@ -227,7 +228,8 @@ export function OptimaBar(props: { component: React.ElementType, currentApp?: Na // transition: 'transform 0.42s', // }} > - {isPanelOpen ? : } + {isPanelOpen ? : menuToPanel ? : } + {/*{isPanelOpen ? : }*/} {/*{menuToPanel ? : }*/}