Add network to useSettings hook

This commit is contained in:
finned-palmer 2021-06-30 17:23:52 -05:00 committed by ixv
parent 278c0d63fa
commit d3650d41eb

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,