mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
refactor(header): move theme-switcher in separate component
This commit is contained in:
parent
a0fbdf3636
commit
f13fd1c4cd
7 changed files with 152 additions and 114 deletions
|
|
@ -5,16 +5,7 @@
|
|||
<a (click)="toggleSidebar()" href="#" class="navigation"><i class="nb-menu"></i></a>
|
||||
<div class="logo" (click)="goToHome()">NgX <span>Admin</span></div>
|
||||
</div>
|
||||
<div class="switcher-container">
|
||||
<label class="theme-switch">
|
||||
<span class="light">Light</span>
|
||||
<div class="switch">
|
||||
<input type="checkbox" (change)="toggleTheme(theme.checked)" #theme>
|
||||
<span class="slider"></span>
|
||||
</div>
|
||||
<span class="cosmic">Cosmic</span>
|
||||
</label>
|
||||
</div>
|
||||
<ngx-theme-switcher></ngx-theme-switcher>
|
||||
</div>
|
||||
|
||||
<nb-actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue