mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
e380a4d2b1
* Payment modal done * Refactor settings and added command support * Made sync operations more efficient * Sync button slightly more efficient * Remove Elm * Fixed Codemirror * Nunjucks 3.0 * Revert sourcemap change and some renaming * Some fixes for Config creation, and added name to resources * Set to new Insomnia URL * Some fixes
35 lines
952 B
JavaScript
35 lines
952 B
JavaScript
import React, {PropTypes} from 'react';
|
|
|
|
const SettingsImportExport = ({importFile, exportAll, exportWorkspace}) => (
|
|
<div>
|
|
<p>
|
|
Be aware that you may be exporting <strong>private data</strong>.
|
|
Also, any imported data may overwrite existing data.
|
|
</p>
|
|
<p>
|
|
<button className="btn btn--super-compact btn--outlined"
|
|
onClick={importFile}>
|
|
Import
|
|
</button>
|
|
{" "}
|
|
<button className="btn btn--super-compact btn--outlined"
|
|
onClick={exportAll}>
|
|
Export All Data
|
|
</button>
|
|
{" "}
|
|
<button className="btn btn--super-compact btn--outlined"
|
|
onClick={exportWorkspace}>
|
|
Export Current Workspace
|
|
</button>
|
|
</p>
|
|
</div>
|
|
);
|
|
|
|
SettingsImportExport.propTypes = {
|
|
importFile: PropTypes.func.isRequired,
|
|
exportAll: PropTypes.func.isRequired,
|
|
exportWorkspace: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default SettingsImportExport;
|