@@ -54,6 +54,7 @@ import { getWeb3ID } from '../utils/Concordium';
5454import { trackEvent , AnalyticsContext , startTracker } from 'aesirx-analytics' ;
5555import ConsentHeader from './ConsentHeader' ;
5656import { CustomizeCategory } from './CustomizeCategory' ;
57+ import { useWeb3Modal } from '@web3modal/react' ;
5758declare global {
5859 interface Window {
5960 dataLayer : any ;
@@ -72,6 +73,8 @@ const ConsentComponentCustom = ({
7273 layout,
7374 isOptInReplaceAnalytics,
7475 customConsentText,
76+ customDetailText,
77+ customRejectText,
7578 disabledBlockDomains,
7679 languageSwitcher,
7780} : any ) => {
@@ -91,6 +94,8 @@ const ConsentComponentCustom = ({
9194 gtmId = { gtmId }
9295 layout = { layout }
9396 customConsentText = { customConsentText }
97+ customDetailText = { customDetailText }
98+ customRejectText = { customRejectText }
9499 disabledBlockDomains = { disabledBlockDomains }
95100 languageSwitcher = { languageSwitcher }
96101 />
@@ -117,9 +122,10 @@ const ConsentComponentCustomWrapper = (props: any) => {
117122 showRevoke ,
118123 handleRevoke ,
119124 ] = useConsentStatus ( props ?. endpoint , props ?. layout , props ) ;
125+ const { isOpen } = useWeb3Modal ( ) ;
120126
121127 return (
122- < div className = " aesirxconsent" >
128+ < div className = { ` aesirxconsent ${ isOpen ? 'web3modal-open' : '' } ` } >
123129 < SSOEthereumProvider layout = { props ?. layout } level = { level } >
124130 < ConsentComponentCustomApp
125131 { ...props }
@@ -131,6 +137,8 @@ const ConsentComponentCustomWrapper = (props: any) => {
131137 gtmId = { props ?. gtmId }
132138 layout = { props ?. layout }
133139 customConsentText = { props ?. customConsentText }
140+ customDetailText = { props ?. customDetailText }
141+ customRejectText = { props ?. customRejectText }
134142 disabledBlockDomains = { props ?. disabledBlockDomains }
135143 languageSwitcher = { props ?. languageSwitcher }
136144 uuid = { uuid }
@@ -159,6 +167,8 @@ const ConsentComponentCustomApp = (props: any) => {
159167 gtmId,
160168 layout,
161169 customConsentText,
170+ customDetailText,
171+ customRejectText,
162172 disabledBlockDomains,
163173 languageSwitcher,
164174 activeConnectorType,
@@ -1317,6 +1327,8 @@ const ConsentComponentCustomApp = (props: any) => {
13171327 isCustom = { true }
13181328 layout = { layout }
13191329 customConsentText = { customConsentText }
1330+ customDetailText = { customDetailText }
1331+ customRejectText = { customRejectText }
13201332 isRejectedLayout = { showRejectedConsent }
13211333 languageSwitcher = { languageSwitcher }
13221334 >
0 commit comments