Skip to content
Snippets Groups Projects
Unverified Commit 43052b4d authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Fix AccordionList PropType (#16160)

parent c3f97bbb
Branches
Tags
No related merge requests found
/* eslint "react/prop-types": "warn" */
import React, { Component } from "react";
import PropTypes from "prop-types";
......@@ -51,7 +49,9 @@ export default class AccordionList extends Component {
className: PropTypes.string,
id: PropTypes.string,
width: PropTypes.number,
// TODO: pass width to this component as solely number or string if possible
// currently prop is number on initialization, then string afterwards
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
maxHeight: PropTypes.number,
sections: PropTypes.array.isRequired,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment