adding esp8266-react's latest NTP library

This commit is contained in:
proddy
2021-01-18 21:15:35 +01:00
parent 44045ae658
commit 94ac0d1418
19 changed files with 6115 additions and 3825 deletions

View File

@@ -1,13 +1,13 @@
import React from 'react';
import { WiFiNetwork } from './types';
export interface NetworkConnectionContext {
export interface NetworkConnectionContextValue {
selectedNetwork?: WiFiNetwork;
selectNetwork: (network: WiFiNetwork) => void;
deselectNetwork: () => void;
}
const NetworkConnectionContextDefaultValue = {} as NetworkConnectionContext
const NetworkConnectionContextDefaultValue = {} as NetworkConnectionContextValue
export const NetworkConnectionContext = React.createContext(
NetworkConnectionContextDefaultValue
);