Skip to content

Commit

Permalink
Merge pull request #1810 from Web3Auth/feat/modal-default-light
Browse files Browse the repository at this point in the history
Feat Default Modal as light mode
  • Loading branch information
chaitanyapotti authored Apr 30, 2024
2 parents 38e509a + b5def1d commit 9c59d1f
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 9c59d1f

Please sign in to comment.