Skip to content

Commit

Permalink
Feat Default Modal as light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbaz17 committed Apr 30, 2024
1 parent 38e509a commit b5def1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modal/src/modalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class Web3Auth extends Web3AuthNoModal implements IWeb3AuthModal {
const { whitelabel } = projectConfig;
this.options.uiConfig = merge(clonedeep(whitelabel), this.options.uiConfig);
if (!this.options.uiConfig.defaultLanguage) this.options.uiConfig.defaultLanguage = getUserLanguage(this.options.uiConfig.defaultLanguage);
if (!this.options.uiConfig.mode) this.options.uiConfig.mode = "auto";
if (!this.options.uiConfig.mode) this.options.uiConfig.mode = "light";

this.loginModal = new LoginModal({
...this.options.uiConfig,
Expand Down

0 comments on commit b5def1d

Please sign in to comment.