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

This commit is contained in:
Jeff Avallone committed 2018-02-17 16:58:49 -05:00
1 parent 44e6dae289
commit 6e8d7c297a
12 files changed
+127 -101

No files matched your search

+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);
}