Renaming mutation to a more imperative name

This commit is contained in:
Jeff Avallone 2019-01-12 12:18:48 -05:00
parent d589329883
commit 024eb57603
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class AppContextProvider extends React.PureComponent {
state = {}
mutations = {
svgData: async ({ svg, width, height }) => {
setSvgMarkup: async ({ svg, width, height }) => {
if (svg !== this.state.svg) {
this.setState({
svg,

View File

@ -17,7 +17,7 @@ class SVG extends React.PureComponent {
}
const svg = this.svgContainer.current.querySelector('svg');
this.context.svgData({
this.context.setSvgMarkup({
svg: svg.outerHTML,
width: svg.getAttribute('width'),
height: svg.getAttribute('height')