mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 19:35:28 +00:00
Add design system feature flag and runtime integration
This commit is contained in:
1 parent
8288824872
commit
8265f9e2de
42 files changed
+359
-23
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
BITVID_WEBSITE_URL as CONFIG_BITVID_WEBSITE_URL,
|
||||
MAX_WALLET_DEFAULT_ZAP as CONFIG_MAX_WALLET_DEFAULT_ZAP,
|
||||
} from "../config.js";
|
||||
import { normalizeDesignSystemContext } from "../designSystem.js";
|
||||
|
||||
const noop = () => {};
|
||||
|
||||
@@ -528,6 +529,7 @@ export class ProfileModalController {
|
||||
services = {},
|
||||
state = {},
|
||||
constants: providedConstants = {},
|
||||
designSystem = null,
|
||||
} = options;
|
||||
|
||||
this.modalContainer = modalContainer;
|
||||
@@ -537,6 +539,7 @@ export class ProfileModalController {
|
||||
this.showError = showError;
|
||||
this.showSuccess = showSuccess;
|
||||
this.showStatus = showStatus;
|
||||
this.designSystem = normalizeDesignSystemContext(designSystem);
|
||||
|
||||
const resolvedMaxWalletDefaultZap =
|
||||
typeof providedConstants.MAX_WALLET_DEFAULT_ZAP === "number" &&
|
||||
|
||||
Reference in new issue
Block a user