Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored and github-actions[bot] committed Dec 6, 2023
1 parent d35656c commit c193556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dinky-web/src/pages/Other/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { chooseTenantSubmit, login, queryDataByParams } from '@/services/Busines
import { API } from '@/services/data';
import { API_CONSTANTS } from '@/services/endpoints';
import { UserBaseInfo } from '@/types/AuthCenter/data';
import { setLocalThemeToStorage, setTenantStorageAndCookie} from '@/utils/function';
import { setLocalThemeToStorage, setTenantStorageAndCookie } from '@/utils/function';
import { useLocalStorage } from '@/utils/hook/useLocalStorage';
import { l } from '@/utils/intl';
import { ErrorMessage, SuccessMessageAsync } from '@/utils/messages';
Expand Down Expand Up @@ -84,7 +84,6 @@ const Login: React.FC = () => {

const handleChooseTenant = async (chooseTenantResult: API.Result) => {
if (chooseTenantResult.code === 0) {

await SuccessMessageAsync(
l('login.chooseTenantSuccess', '', {
msg: chooseTenantResult.msg,
Expand Down
2 changes: 1 addition & 1 deletion dinky-web/src/utils/function.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function getLocalTheme(): string {
}

export function setLocalThemeToStorage(defaultTheme?: string) {
localStorage.setItem(THEME.NAV_THEME,defaultTheme ?? getLocalTheme()) ;
localStorage.setItem(THEME.NAV_THEME, defaultTheme ?? getLocalTheme());
}

/**
Expand Down

0 comments on commit c193556

Please sign in to comment.