Skip to content

Commit 5f4b649

Browse files
committed
Re-enable proptypes warnings
1 parent 011d002 commit 5f4b649

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

modules/locationBroadcast.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
/*eslint react/prop-types: 0*/
21
import React from 'react'
32
import { Broadcast, Subscriber } from 'react-broadcast'
43

5-
const NAME = 'location'
4+
const LocationChannel = 'location'
65

7-
const LocationBroadcast = ({ children, value }) =>
8-
<Broadcast channel={NAME} value={value} children={children}/>
6+
export const LocationBroadcast = (props) =>
7+
<Broadcast {...props} channel={LocationChannel}/>
98

10-
const LocationSubscriber = ({ children }) =>
11-
<Subscriber channel={NAME} children={children}/>
12-
13-
export { LocationBroadcast, LocationSubscriber }
9+
export const LocationSubscriber = (props) =>
10+
<Subscriber {...props} channel={LocationChannel}/>

0 commit comments

Comments
 (0)