fix: modal title

This commit is contained in:
Nevo David 2025-08-06 22:57:09 +07:00
parent 0dceb898d7
commit f427991d13
2 changed files with 20 additions and 13 deletions

View File

@ -348,12 +348,14 @@ export const AddProviderComponent: FC<{
modal: 'bg-transparent text-textColor',
},
children: (
<Web3Providers
onComplete={(code, newState) => {
window.location.href = `/integrations/social/${identifier}?code=${code}&state=${newState}`;
}}
nonce={url}
/>
<ModalWrapperComponent title="Web3 provider">
<Web3Providers
onComplete={(code, newState) => {
window.location.href = `/integrations/social/${identifier}?code=${code}&state=${newState}`;
}}
nonce={url}
/>
</ModalWrapperComponent>
),
});
return;
@ -384,7 +386,11 @@ export const AddProviderComponent: FC<{
classNames: {
modal: 'bg-transparent text-textColor',
},
children: <UrlModal gotoUrl={gotoIntegration} />,
children: (
<ModalWrapperComponent title="URL">
<UrlModal gotoUrl={gotoIntegration} />
</ModalWrapperComponent>
),
});
return;
}
@ -397,11 +403,13 @@ export const AddProviderComponent: FC<{
modal: 'bg-transparent text-textColor',
},
children: (
<CustomVariables
identifier={identifier}
gotoUrl={(url: string) => router.push(url)}
variables={customFields}
/>
<ModalWrapperComponent title="Add Provider">
<CustomVariables
identifier={identifier}
gotoUrl={(url: string) => router.push(url)}
variables={customFields}
/>
</ModalWrapperComponent>
),
});
return;

View File

@ -143,7 +143,6 @@ export const stripHtmlValidation = (
if (type === 'html') {
return striptags(convertMention(value, convertMentionFunction), [
'ul',
'ol',
'li',
'h1',
'h2',