Skip to content

Commit c7aa299

Browse files
fix(UISref/UISrefActive): make proptypes non-required: parentUIView, addStateInfoToParentActive
Closes #173
1 parent f16aed3 commit c7aa299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/UISref.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Sref extends Component<UISrefProps, any> {
3232
deregister: Function;
3333
static propTypes = {
3434
router: PropTypes.object.isRequired,
35-
parentUIView: PropTypes.object.isRequired,
36-
addStateInfoToParentActive: PropTypes.func.isRequired,
35+
parentUIView: PropTypes.object,
36+
addStateInfoToParentActive: PropTypes.func,
3737
children: PropTypes.element.isRequired,
3838
to: PropTypes.string.isRequired,
3939
params: PropTypes.object,

src/components/UISrefActive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SrefActive extends Component<UISrefActiveProps, any> {
4545
deregister: Function;
4646

4747
static propTypes = {
48-
parentUIView: PropTypes.object.isRequired,
48+
parentUIView: PropTypes.object,
4949
router: PropTypes.object.isRequired,
5050
class: PropTypes.string.isRequired,
5151
children: PropTypes.element.isRequired,

0 commit comments

Comments
 (0)