mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-30 08:59:54 +03:00
chore: add some code format
This commit is contained in:
parent
4f452207c4
commit
ea508e6a1d
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ const normalizeKey = (k) =>
|
||||||
.replace(/^theme-/, '');
|
.replace(/^theme-/, '');
|
||||||
|
|
||||||
const preferDarkMode = ({ theme }) => {
|
const preferDarkMode = ({ theme }) => {
|
||||||
if (theme === 'auto' || theme === "") {
|
if (theme === 'auto' || theme === '') {
|
||||||
switch (localStorage.getItem(LOCAL_STORAGE_THEME)) {
|
switch (localStorage.getItem(LOCAL_STORAGE_THEME)) {
|
||||||
case 'dark':
|
case 'dark':
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue