import React, { Component } from "react";
import PropTypes from "prop-types";
import { Button } from "reactstrap";
import "./styles.scss";

class EditPage extends Component {
  render() {
    return (
      <div id="edit-page">
        <Button color="primary" onClick={this.openEditModal}>
          Edit Page
          <i className="far fa-edit" />
        </Button>
      </div>
    );
  }

  openEditModal = () => {
    window.__editData = this.props.data;
    this.props.history.push("?edit=1");
  };
}

EditPage.propTypes = {
  data: PropTypes.object.isRequired,
  history: PropTypes.object.isRequired
};

export default EditPage;

@@ -30,15 +30,15 @@
 rom 
-%22
+'
 react
-%22
+'
 ;%0Aim
@@ -57,17 +57,17 @@
 es from 
-%22
+'
 prop-typ
@@ -68,17 +68,17 @@
 op-types
-%22
+'
 ;%0Aimport
@@ -94,17 +94,17 @@
  %7D from 
-%22
+'
 reactstr
@@ -105,17 +105,17 @@
 actstrap
-%22
+'
 ;%0Aimport
@@ -115,17 +115,17 @@
 %0Aimport 
-%22
+'
 ./styles
@@ -129,17 +129,17 @@
 les.scss
-%22
+'
 ;%0A%0Aclass
@@ -176,16 +176,17 @@
   render
+ 
 () %7B%0A   
@@ -209,17 +209,17 @@
 %3Cdiv id=
-%22
+'
 edit-pag
@@ -219,17 +219,17 @@
 dit-page
-%22
+'
 %3E%0A      
@@ -327,17 +327,17 @@
 assName=
-%22
+'
 far fa-e
@@ -339,17 +339,17 @@
  fa-edit
-%22
+'
  /%3E%0A    
@@ -380,17 +380,16 @@
 v%3E%0A    )
-;
 %0A  %7D%0A%0A  
@@ -485,17 +485,17 @@
 ush(
-%22
+'
 ?edit=1
-%22
+'
 );%0A 

Update index.js