We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011d002 commit 5f4b649Copy full SHA for 5f4b649
modules/locationBroadcast.js
@@ -1,13 +1,10 @@
1
-/*eslint react/prop-types: 0*/
2
import React from 'react'
3
import { Broadcast, Subscriber } from 'react-broadcast'
4
5
-const NAME = 'location'
+const LocationChannel = 'location'
6
7
-const LocationBroadcast = ({ children, value }) =>
8
- <Broadcast channel={NAME} value={value} children={children}/>
+export const LocationBroadcast = (props) =>
+ <Broadcast {...props} channel={LocationChannel}/>
9
10
-const LocationSubscriber = ({ children }) =>
11
- <Subscriber channel={NAME} children={children}/>
12
-
13
-export { LocationBroadcast, LocationSubscriber }
+export const LocationSubscriber = (props) =>
+ <Subscriber {...props} channel={LocationChannel}/>
0 commit comments