Moving to using a decorator mixin instead of base class for SVGs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user