mirror of
https://github.com/mue/mue.git
synced 2026-07-18 14:34:12 +02:00
feat: rolling out share modal for photoinfo
This commit is contained in:
@@ -103,7 +103,7 @@ export default class Item extends PureComponent {
|
||||
onRequestClose={() => this.setState({ shareModal: false })}
|
||||
>
|
||||
<ShareModal
|
||||
data={this.props.data}
|
||||
data={variables.constants.MARKETPLACE_URL + '/share/' + btoa(this.props.data.api_name)}
|
||||
modalClose={() => this.setState({ shareModal: false })}
|
||||
/>
|
||||
</Modal>
|
||||
|
||||
@@ -120,15 +120,6 @@ export default class WelcomeModal extends PureComponent {
|
||||
/>
|
||||
</div>
|
||||
<div className="buttons">
|
||||
{this.state.currentTab === 0 ? (
|
||||
<button
|
||||
className="close"
|
||||
style={{ marginRight: '20px' }}
|
||||
onClick={() => this.props.modalSkip()}
|
||||
>
|
||||
{this.getMessage('modals.welcome.buttons.preview')}
|
||||
</button>
|
||||
) : null}
|
||||
{this.state.currentTab !== 0 ? (
|
||||
<button
|
||||
className="close"
|
||||
@@ -137,7 +128,15 @@ export default class WelcomeModal extends PureComponent {
|
||||
>
|
||||
{this.getMessage('modals.welcome.buttons.previous')}
|
||||
</button>
|
||||
) : null}
|
||||
) : (
|
||||
<button
|
||||
className="close"
|
||||
style={{ marginRight: '20px' }}
|
||||
onClick={() => this.props.modalSkip()}
|
||||
>
|
||||
{this.getMessage('modals.welcome.buttons.preview')}
|
||||
</button>
|
||||
)}
|
||||
<button className="close" onClick={() => this.changeTab()}>
|
||||
{this.state.buttonText}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user