mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-25 04:52:45 +00:00
chore: add some code format
This commit is contained in:
@@ -34,7 +34,7 @@ const normalizeKey = (k) =>
|
||||
.replace(/^theme-/, '');
|
||||
|
||||
const preferDarkMode = ({ theme }) => {
|
||||
if (theme === 'auto' || theme === "") {
|
||||
if (theme === 'auto' || theme === '') {
|
||||
switch (localStorage.getItem(LOCAL_STORAGE_THEME)) {
|
||||
case 'dark':
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user