Skip to content
Snippets Groups Projects
Commit 8455c0ce authored by uladzimir's avatar uladzimir Committed by Uladzimir Havenchyk
Browse files

Correct prop-types

parent 288c60d0
Branches
Tags
No related merge requests found
......@@ -11,9 +11,16 @@ const propTypes = {
to: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
activeColor: PropTypes.string,
inactiveColor: PropTypes.string,
isSingleLine: PropTypes.boolean,
};
function RawMaybeLink({ to, activeColor, inactiveColor, ...props }) {
function RawMaybeLink({
to,
activeColor,
inactiveColor,
isSingleLine,
...props
}) {
return to ? <Link to={to} {...props} /> : <span {...props} />;
}
......
......@@ -97,7 +97,10 @@ class DashboardHeader extends Component {
onChangeLocation: PropTypes.func.isRequired,
toggleSidebar: PropTypes.func.isRequired,
sidebar: PropTypes.string.isRequired,
sidebar: PropTypes.shape({
name: PropTypes.string,
props: PropTypes.object,
}).isRequired,
setSidebar: PropTypes.func.isRequired,
closeSidebar: PropTypes.func.isRequired,
addActionToDashboard: PropTypes.func.isRequired,
......
......@@ -346,7 +346,7 @@ ViewTitleHeaderRightSide.propTypes = {
onOpenQuestionInfo: PropTypes.func,
onCloseQuestionInfo: PropTypes.func,
isShowingQuestionInfoSidebar: PropTypes.bool,
onModelPersistenceChange: PropTypes.bool,
onModelPersistenceChange: PropTypes.func,
onQueryChange: PropTypes.func,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment