mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
f4b859832c
* change copy in box * Consistent Dev Portal wording * skips test with breadcrumb comment
30 lines
715 B
JavaScript
30 lines
715 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import DeployToPortal from './src/deploy-to-portal';
|
|
|
|
export const documentActions = [
|
|
{
|
|
label: 'Deploy to Dev Portal',
|
|
hideAfterClick: true,
|
|
action(context, spec) {
|
|
const root = document.createElement('div');
|
|
ReactDOM.render(
|
|
<DeployToPortal
|
|
spec={spec}
|
|
store={context.store}
|
|
axios={context.__private.axios}
|
|
trackEvent={context.__private.analytics.trackEvent}
|
|
/>,
|
|
root,
|
|
);
|
|
|
|
context.app.dialog('Deploy to Dev Portal', root, {
|
|
skinny: true,
|
|
onHide() {
|
|
ReactDOM.unmountComponentAtNode(root);
|
|
},
|
|
});
|
|
},
|
|
},
|
|
];
|