Moving to using a decorator mixin instead of base class for SVGs

This commit is contained in:
Jeff Avallone
2018-02-17 16:58:49 -05:00
parent 44e6dae289
commit 6e8d7c297a
12 changed files with 127 additions and 101 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
/* eslint-disable react/prop-types */
import React from 'react';
import Base from 'components/SVG/Base';
import reflowable from 'components/SVG/reflowable';
class SVGElement extends Base {
@reflowable
class SVGElement extends React.PureComponent {
reflow() {
return this.setBBox(this.props.bbox);
}