mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Handling situation where React Router may not be available for a Tag Label.
This commit is contained in:
parent
0920383963
commit
2cbc6e00e0
8 changed files with 56 additions and 33 deletions
|
|
@ -717,6 +717,14 @@ export const useStatusInterval = () => {
|
|||
return {status, fetchStatus};
|
||||
}
|
||||
|
||||
export const StatusProvider = (props) => {
|
||||
const value = useStatusInterval();
|
||||
|
||||
return <StatusContext.Provider value={value}>
|
||||
{props.children}
|
||||
</StatusContext.Provider>
|
||||
}
|
||||
|
||||
|
||||
export const useVideoStatistics = () => {
|
||||
const [statistics, setStatistics] = useState({});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue