insomnia/app/ui/components/settings/SettingsImportExport.js
Gregory Schier e380a4d2b1 Insomnia Plus Launch (#41)
* 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
2016-11-07 12:24:38 -08:00

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;