Skip to content

Commit

Permalink
Merge pull request #1827 from Web3Auth/add-light-mode-no-modal
Browse files Browse the repository at this point in the history
Add default ui mode for No Modal SDK
  • Loading branch information
chaitanyapotti authored May 17, 2024
2 parents 77ffe49 + 033e463 commit d9edd2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/no-modal/src/noModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class Web3AuthNoModal extends SafeEventEmitter implements IWeb3Auth {

const { whitelabel } = projectConfig;
this.coreOptions.uiConfig = merge(clonedeep(whitelabel), this.coreOptions.uiConfig);
if (!this.coreOptions.uiConfig.mode) this.coreOptions.uiConfig.mode = "light";

const { sms_otp_enabled: smsOtpEnabled, whitelist } = projectConfig;
if (smsOtpEnabled !== undefined) {
Expand Down

0 comments on commit d9edd2d

Please sign in to comment.