Skip to content

Commit aa50395

Browse files
author
Tomasz John
committed
- update: warnings removed
1 parent 294d642 commit aa50395

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+157
-114
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@
7070
"nwb": "^0.23.0",
7171
"react-app-polyfill": "^1.0.6",
7272
"react-popper": "^0.10.4",
73-
"sinon": "^5.1.1",
74-
"react": "^16.12.0",
75-
"react-dom": "^16.12.0",
76-
"react-router-dom": "^5.1.2"
73+
"sinon": "^5.1.1"
7774
},
7875
"repository": {
7976
"type": "git",

src/CBadge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React,{useMemo, useRef} from 'react';
1+
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
44
import {tagPropType, mapToCssModules} from './Shared/helper.js';

src/CBreadcrumb.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import React, {useState} from 'react';
1+
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType, mapToCssModules} from './Shared/helper.js';
54
import {Route, Link, matchPath} from 'react-router-dom';
65
import CBreadcrumbCustom from './CBreadcrumbCustom';
76
import CBreadcrumbItem from './CBreadcrumbItem';
@@ -45,7 +44,8 @@ const CBreadcrumbRouteItem = ({ match }) => {
4544

4645
CBreadcrumbRouteItem.propTypes = {
4746
match: PropTypes.shape({
48-
url: PropTypes.string
47+
url: PropTypes.string,
48+
isExact: PropTypes.bool
4949
})
5050
};
5151

@@ -80,7 +80,6 @@ const CBreadcrumbRouter = args=>{
8080
const CBreadcrumb = props=>{
8181

8282
const {
83-
tag: Tag,
8483
children,
8584
className,
8685
custom,
@@ -126,6 +125,7 @@ CBreadcrumb.propTypes = {
126125
//
127126
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
128127
appRoutes: PropTypes.any,
128+
match: PropTypes.object,
129129
routesProps: PropTypes.object
130130
};
131131

src/CButton.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ const CButton = props=>{
7171
onClick={onClick}
7272
aria-label={ariaLabel || defaultAriaLabel}
7373
ref={innerRef}
74-
children={textHtml ? textHtml : children}
75-
/>;
74+
>
75+
{textHtml ? textHtml : children}
76+
</Tag>
7677

7778
}
7879

src/CButtonClose.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const CButtonClose = props=>{
3333

3434
CButtonClose.propTypes = {
3535
tag: tagPropType,
36+
children: PropTypes.node,
3637
className: PropTypes.string,
3738
cssModule: PropTypes.object,
3839
//

src/CCard.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
4-
import {tagPropType, mapToCssModules, deprecated} from './Shared/helper.js';
4+
import {tagPropType, mapToCssModules} from './Shared/helper.js';
55
import CCardBody from './CCardBody';
66
import CCardHeader from './CCardHeader';
77
import CCardFooter from './CCardFooter';
@@ -62,7 +62,9 @@ const CCard = props=>{
6262
);
6363

6464
return (
65-
<Tag {...attributes} className={classes} ref={innerRef} children={children}/>
65+
<Tag {...attributes} className={classes} ref={innerRef}>
66+
{children}
67+
</Tag>
6668
);
6769

6870
}

src/CCardLink.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import CLink from './CLink';
99
const CCardLink = props=>{
1010

1111
const {
12-
tag: Tag,
1312
className,
1413
cssModule,
1514
//

src/CCarousel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ CCarousel.propTypes = {
107107
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
108108
items: PropTypes.array,
109109
indicators: PropTypes.bool,
110+
defaultOpen: PropTypes.bool,
110111
controls: PropTypes.bool,
111112
autoPlay: PropTypes.bool,
112113
activeIndex: PropTypes.number,

src/CCollapse.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ CCollapse.propTypes = {
6767
defaultOpen: PropTypes.bool,
6868
toggler: PropTypes.string,
6969
toggleEvents: PropTypes.arrayOf(PropTypes.string),
70+
toggle: PropTypes.func,
71+
show: PropTypes.bool
7072
};
7173

7274
CCollapse.defaultProps = {

src/CCollapseCustom.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const CCollapseCustom = props=>{
2929
className,
3030
cssModule,
3131
//
32-
innerRef,
3332
show,
3433
navbar,
3534
...otherProps

0 commit comments

Comments
 (0)