Add network to useSettings hook

This commit is contained in:
finned-palmer 2021-06-30 17:23:52 -05:00
parent 078d4991b3
commit be844f18f2

View File

@ -44,6 +44,7 @@ export const SettingsContext = createContext({
});
export const SettingsProvider = ({ channel, children }) => {
const [network, setNetwork] = useState('bitcoin');
const [channelData, setChannelData] = useState(null);
const [loadedBtc, setLoadedBtc] = useState(false);
const [loadedSettings, setLoadedSettings] = useState(false);
@ -255,6 +256,8 @@ export const SettingsProvider = ({ channel, children }) => {
return (
<Provider
value={{
network,
setNetwork,
loadedBtc,
setLoadedBtc,
loadedSettings,