mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 03:19:41 +05:00
frontend: add close button to color picker
This commit is contained in:
parent
79782b4228
commit
6b88601417
2 changed files with 38 additions and 22 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue