Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 4faa7cc

Browse files
feat: remove ready to publish cta (#1299)
1 parent 8e616af commit 4faa7cc

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

studio/src/app/components/core/app-navigation-actions/app-navigation-actions.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, Event, EventEmitter, Prop, h} from '@stencil/core';
1+
import {Component, Prop, h} from '@stencil/core';
22

33
import {popoverController} from '@ionic/core';
44

@@ -8,7 +8,6 @@ import userStore from '../../../stores/user.store';
88
import i18n from '../../../stores/i18n.store';
99

1010
import {signIn} from '../../../utils/core/signin.utils';
11-
import { shareEnabled } from '../../../utils/core/environment.utils';
1211

1312
@Component({
1413
tag: 'app-navigation-actions',
@@ -20,10 +19,6 @@ export class AppNavigationActions {
2019
@Prop() write: boolean = true;
2120
@Prop() publish: boolean = false;
2221

23-
@Event() private actionPublish: EventEmitter<void>;
24-
25-
private shareEnabled: boolean = shareEnabled();
26-
2722
private async openMenu($event: UIEvent) {
2823
const popover: HTMLIonPopoverElement = await popoverController.create({
2924
component: 'app-user-menu',
@@ -39,7 +34,6 @@ export class AppNavigationActions {
3934
<div>
4035
{this.renderSignIn()}
4136
{this.renderPresentationButton()}
42-
{this.renderPublishButton()}
4337
{this.renderLoggedIn()}
4438
</div>
4539
);
@@ -78,21 +72,4 @@ export class AppNavigationActions {
7872
return null;
7973
}
8074
}
81-
82-
private renderPublishButton() {
83-
if (this.publish && this.shareEnabled) {
84-
return (
85-
<ion-button
86-
class="publish ion-margin-end"
87-
shape="round"
88-
onClick={() => this.actionPublish.emit()}
89-
mode="md"
90-
color={themeStore.state.darkTheme ? 'light' : 'dark'}>
91-
<ion-label>{i18n.state.nav.ready_to_share}</ion-label>
92-
</ion-button>
93-
);
94-
} else {
95-
return null;
96-
}
97-
}
9875
}

studio/src/components.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,6 @@ declare namespace LocalJSX {
15751575
"write"?: boolean;
15761576
}
15771577
interface AppNavigationActions {
1578-
"onActionPublish"?: (event: CustomEvent<void>) => void;
15791578
"publish"?: boolean;
15801579
"signIn"?: boolean;
15811580
"write"?: boolean;

0 commit comments

Comments
 (0)