Skip to content
Snippets Groups Projects
Commit 32fc95c6 authored by Titouan BOUETE-GIRAUD's avatar Titouan BOUETE-GIRAUD
Browse files

The submenu now uses a Sidebar instead of a div

parent 59ecb849
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ import { classes } from 'dome/misc/utils';
import { Item, Section } from "dome/frame/sidebars";
import { Catch } from 'dome/errors';
import { SideBarCategoryProps, registerSandbox } from 'ivette';
import * as sb from '../../src/dome/renderer/frame/sidebars';
import './style.css';
/* -------------------------------------------------------------------------- */
......@@ -145,7 +146,6 @@ export function SideBar(): JSX.Element {
const classNameSecondary = classes(
'dome-xSideBar-double-secondary',
'dome-xSideBar',
'dome-color-frame',
);
......@@ -190,10 +190,10 @@ export function SideBar(): JSX.Element {
))}
</>
</div>
<div className={classNameSecondary +
<sb.SideBar className={classNameSecondary +
(categories[selectedCategory].display === false ? 'dome-erased' : '')}>
{categories[selectedCategory].children}
</div>
</sb.SideBar>
</div>
</Catch>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment