diff --git a/components/Editor.js b/components/Editor.js index c55ef01..062f473 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -38,9 +38,8 @@ import { getState, escapeHtml, unescapeHtml } from '../lib/util' const saveButtonOptions = { button: true, color: '#c198fb', - selected: { id: 'SAVE_IMAGE', name: 'Export Image' }, - list: ['png', 'svg', 'copy embed', 'open ↗'].map(id => ({ id, name: id.toUpperCase() })), - itemWrapper: props => + selected: { id: 'SAVE_IMAGE', name: 'Save Image' }, + list: ['png', 'svg', 'open ↗'].map(id => ({ id, name: id.toUpperCase() })) } class Editor extends React.Component { diff --git a/next.config.js b/next.config.js index cd6ced8..4c0b96d 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,7 @@ -const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') -const withOffline = require('next-offline') +// const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') +// const withOffline = require('next-offline') -module.exports = (phase /* { defaultConfig } */) => { +module.exports = (/* phase { defaultConfig } */) => { const config = { async exportPathMap() { return { @@ -19,9 +19,5 @@ module.exports = (phase /* { defaultConfig } */) => { } } - if (phase === PHASE_DEVELOPMENT_SERVER) { - return config - } - - return withOffline(config) + return config }