frontend: add close button to color picker

This commit is contained in:
Kentai Radiquum 2024-04-21 05:49:46 +05:00
parent 79782b4228
commit 6b88601417
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 38 additions and 22 deletions

View file

@ -34,14 +34,21 @@ export const App = (props) => {
return (
<body>
<NavigationRail
colorPicker={colorPicker}
setColorPicker={setColorPicker}
/>
<main className="responsive">
{colorPicker && <ColorPicker mode={mode} theme={theme} />}
{props.children}
</main>
<div>
<NavigationRail
colorPicker={colorPicker}
setColorPicker={setColorPicker}
/>
{colorPicker && (
<ColorPicker
mode={mode}
theme={theme}
colorPicker={colorPicker}
setColorPicker={setColorPicker}
/>
)}
</div>
<main className="responsive">{props.children}</main>
</body>
);
};