Browse Source

removing extra func definition

master
Anastasia Poupeney 7 years ago
parent
commit
4001d28873
  1. 9
      src/components/RenderError.js

9
src/components/RenderError.js

@ -37,15 +37,6 @@ class RenderError extends PureComponent<
handleOpenHardResetModal = () => this.setState({ isHardResetModalOpened: true }) handleOpenHardResetModal = () => this.setState({ isHardResetModalOpened: true })
handleCloseHardResetModal = () => this.setState({ isHardResetModalOpened: false }) handleCloseHardResetModal = () => this.setState({ isHardResetModalOpened: false })
handleHardReset = async () => {
this.setState({ isHardResetting: true })
try {
await hardReset()
remote.getCurrentWindow().webContents.reloadIgnoringCache()
} catch (err) {
this.setState({ isHardResetting: false })
}
}
hardResetIconRender = () => ( hardResetIconRender = () => (
<IconWrapperCircle color="alertRed"> <IconWrapperCircle color="alertRed">
<IconTriangleWarning width={23} height={21} /> <IconTriangleWarning width={23} height={21} />

Loading…
Cancel
Save