Skip to content

Commit 7b42efa

Browse files
Merge pull request #2258 from Web3Auth/feat/logo-required
feat: require logo
2 parents ca053f0 + c6d0d5c commit 7b42efa

File tree

8 files changed

+2088
-1154
lines changed

8 files changed

+2088
-1154
lines changed

demo/vue-app-new/src/MainView.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,25 @@ const options = computed((): Web3AuthOptions => {
112112
113113
const { widget, targetId } = formData;
114114
const uiConfig: Web3AuthOptions["uiConfig"] = enabledWhiteLabel
115-
? { ...whiteLabel, widgetType: widget, targetId }
116-
: { widgetType: widget, targetId };
115+
? {
116+
...whiteLabel,
117+
widgetType: widget,
118+
targetId,
119+
logoLight: whiteLabel.logoLight || "",
120+
logoDark: whiteLabel.logoDark || "",
121+
}
122+
: {
123+
widgetType: widget,
124+
targetId,
125+
logoLight: "",
126+
logoDark: "",
127+
};
117128
const authConnectorInstance = authConnector({ connectorSettings: {} });
118129
119130
return {
120131
clientId: clientIds[formData.network],
121132
web3AuthNetwork: formData.network,
122-
uiConfig: uiConfig as UIConfig,
133+
uiConfig: uiConfig,
123134
accountAbstractionConfig,
124135
useAAWithExternalWallet: formData.useAAWithExternalWallet,
125136
// TODO: Add more options

0 commit comments

Comments
 (0)