Skip to content

Commit

Permalink
JS-5569: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mhlv committed Nov 13, 2024
1 parent d4e57c9 commit 7b40fd8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/scss/component/emailCollectionForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

.buttonWrapper { padding-top: 8px; }
.buttonWrapper {
.button { width: 100%; }
.button { width: 100%; overflow: hidden; }
.loaderWrapper { border-radius: 0px !important; }
}

.step0 { padding-top: 16px; }
Expand Down
4 changes: 0 additions & 4 deletions src/ts/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ class App extends React.Component<object, State> {

componentDidMount () {
this.init();

window.setTimeout(() => {
Onboarding.start('emailCollection', false, true);
}, 1500);
};

init () {
Expand Down
13 changes: 11 additions & 2 deletions src/ts/component/menu/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,19 @@ const MenuOnboarding = observer(class MenuSelect extends React.Component<I.Menu,

onClose () {
const { param, close } = this.props;
const { data } = param;
const { key, current } = data;
const { data, onClose } = param;
const { key, current, isPopup } = data;
const section = this.getSection();


let menuParam = Onboarding.getParam(section, {}, isPopup);

close();

if (menuParam.onClose) {
menuParam.onClose();
};

analytics.event('ClickOnboardingTooltip', { type: 'close', id: key, step: (current + 1) });
};

Expand Down
5 changes: 4 additions & 1 deletion src/ts/docs/help/onboarding.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { I, U, translate, S } from 'Lib';
import { I, U, translate, S, Onboarding } from 'Lib';

export default {
mainGraph: () => ({
Expand Down Expand Up @@ -106,6 +106,9 @@ export default {
'.widget',
'#containerWidget #list .buttons',
],
onClose: () => {
Onboarding.start('emailCollection', false);
},
},
items: [
{
Expand Down

0 comments on commit 7b40fd8

Please sign in to comment.