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.
|
||||
if (typeof window !== "undefined") {
|
||||
ActiveTabIndicator.propTypes = {
|
||||
tabRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.instanceOf(Element) })]),
|
||||
};
|
||||
}
|
||||
ActiveTabIndicator.propTypes = {
|
||||
tabRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.elementType })]),
|
||||
};
|
||||
|
|
Reference in New Issue