style(dashboard-v2): use PropTypes.elementType
This commit is contained in:
parent
8dcd688673
commit
4429e4e0be
|
@ -35,9 +35,6 @@ export const ActiveTabIndicator = ({ tabRef }) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Needed, because we're using an Element constant here which Gatsby doesn't recognize during build time.
|
ActiveTabIndicator.propTypes = {
|
||||||
if (typeof window !== "undefined") {
|
tabRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.elementType })]),
|
||||||
ActiveTabIndicator.propTypes = {
|
};
|
||||||
tabRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.instanceOf(Element) })]),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
Reference in New Issue