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