mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-04 11:59:40 +05:00
frontend: add settings boilerplate
This commit is contained in:
parent
c2656fbab9
commit
baaa67f2ab
3 changed files with 41 additions and 1 deletions
|
@ -78,7 +78,10 @@ export const NavigationRail = (props) => {
|
|||
})}
|
||||
|
||||
<span className="max"></span>
|
||||
<button className="circle transparent">
|
||||
<button
|
||||
className="circle transparent"
|
||||
onClick={() => props.setSettingsPopup(!props.settingsPopup)}
|
||||
>
|
||||
<i>settings</i>
|
||||
</button>
|
||||
|
||||
|
|
32
frontend/app/components/Settings/Settings.jsx
Normal file
32
frontend/app/components/Settings/Settings.jsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
export default function Settings() {
|
||||
return (
|
||||
<>
|
||||
<dialog
|
||||
className="active left round bottom small"
|
||||
style={{ blockSize: "unset" }}
|
||||
>
|
||||
<h5>Настройки</h5>
|
||||
<nav className="wrap">
|
||||
<div class="max">
|
||||
<h6 className="small">сохранение в истории просмотров</h6>
|
||||
</div>
|
||||
<label class="switch">
|
||||
<input type="checkbox" />
|
||||
<span></span>
|
||||
</label>
|
||||
</nav>
|
||||
<li className="small-divider"></li>
|
||||
<nav className="wrap small-space">
|
||||
<button className="red">
|
||||
<i>delete_forever</i>
|
||||
<span>Удалить все настройки</span>
|
||||
</button>
|
||||
<button className="red">
|
||||
<i>delete_history</i>
|
||||
<span>Удалить историю поиска</span>
|
||||
</button>
|
||||
</nav>
|
||||
</dialog>
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue