Этот коммит содержится в:
Conor Macpherson
2023-04-04 09:23:42 -04:00
родитель 0ce1b6c12c
Коммит 2f010f9f6a
5 изменённых файлов: 128 добавлений и 126 удалений

Просмотреть файл

@@ -68,11 +68,11 @@ const EnterpriseEditionLeftPanel = ({
useEffect(() => { useEffect(() => {
console.log(actionQueryParam); console.log(actionQueryParam);
if (actionQueryParam === 'show_expansion_modal' && canExpand && isSelfHostedExpansionEnabled) { if (actionQueryParam === 'show_expansion_modal' && canExpand && isSelfHostedExpansionEnabled) {
console.log("Open modal!"); console.log('Open modal!');
selfHostedExpansionModal.open(); selfHostedExpansionModal.open();
query.set('action', ''); query.set('action', '');
} }
}, []) }, []);
useEffect(() => { useEffect(() => {
async function fetchUnSanitizedLicense() { async function fetchUnSanitizedLicense() {

Просмотреть файл

@@ -103,7 +103,7 @@ const OverageUsersBannerNotice = () => {
const handleClick = () => { const handleClick = () => {
trackEventFn(isExpandable ? 'Self Serve' : 'Contact Sales'); trackEventFn(isExpandable ? 'Self Serve' : 'Contact Sales');
if (isExpandable) { if (isExpandable) {
selfHostedExpansionModal.open() selfHostedExpansionModal.open();
} }
}; };
@@ -120,7 +120,7 @@ const OverageUsersBannerNotice = () => {
> >
{cta} {cta}
</NavLink> </NavLink>
) );
} }
return ( return (

Просмотреть файл

@@ -519,7 +519,9 @@ export default function SelfHostedExpansionModal() {
{formState.error && ( {formState.error && (
<ErrorPage <ErrorPage
canRetry={canRetry} canRetry={canRetry}
tryAgain={() => {setFormState({...formState, submitting: false, error: ''})}} tryAgain={() => {
setFormState({...formState, submitting: false, error: ''});
}}
/> />
)} )}
<div className='background-svg'> <div className='background-svg'>