1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 08:11:17 +02:00

add subs details in profile modal

This commit is contained in:
Kushagra Gour
2024-03-19 15:53:02 +05:30
parent 22a4361baa
commit 14bc964aa4
8 changed files with 284 additions and 46 deletions

View File

@@ -1134,8 +1134,13 @@ export default class App extends Component {
return false;
}
proBtnClickHandler() {
this.setState({ isProModalOpen: true });
trackEvent('ui', 'proBtnClick');
if (user?.isPro) {
this.setState({ isProfileModalOpen: true });
trackEvent('ui', 'manageProBtnClick');
} else {
this.setState({ isProModalOpen: true });
trackEvent('ui', 'proBtnClick');
}
}
codepenBtnClickHandler(e) {
if (this.state.currentItem.cssMode === CssModes.ACSS) {