remove hack doesn't work
This commit is contained in:
parent
01ee3777eb
commit
ed966cea1e
@ -1,6 +1,4 @@
|
|||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
|
||||||
import { MemoryRouter } from 'react-router-dom';
|
|
||||||
import { NavLink, Redirect } from 'react-router-dom';
|
import { NavLink, Redirect } from 'react-router-dom';
|
||||||
import Confetti from 'canvas-confetti';
|
import Confetti from 'canvas-confetti';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
@ -18,8 +16,6 @@ import { CategoryViewProps, CopyProps } from './data-containers/category-view-pr
|
|||||||
import { CopyControl } from './header-buttons/copy-control';
|
import { CopyControl } from './header-buttons/copy-control';
|
||||||
import { ViewEditControl } from './header-buttons/view-edit-control';
|
import { ViewEditControl } from './header-buttons/view-edit-control';
|
||||||
|
|
||||||
import { App } from '../app';
|
|
||||||
|
|
||||||
import './data-container.css';
|
import './data-container.css';
|
||||||
|
|
||||||
interface DataContainerProps {
|
interface DataContainerProps {
|
||||||
@ -251,15 +247,6 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
|
|||||||
this.setState({error: err});
|
this.setState({error: err});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hack to get tiles to refresh
|
|
||||||
const div = document.createElement('div');
|
|
||||||
ReactDOM.render(
|
|
||||||
<MemoryRouter>
|
|
||||||
<App revisionId="0" />
|
|
||||||
</MemoryRouter>,
|
|
||||||
div
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log(slug + " verify button clicked")
|
console.log(slug + " verify button clicked")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user