clean up and style tweaks

This commit is contained in:
gingervitis
2021-01-03 01:54:04 -08:00
committed by Gabe Kangas
parent 19ae6205c5
commit 5f0d7480bb
11 changed files with 81 additions and 54 deletions

View File

@@ -53,7 +53,7 @@ export const ServerStatusContext = React.createContext({
...initialServerStatusState,
serverConfig: initialServerConfigState,
setConfigField: any,
setFieldInConfigState: any,
});
const ServerStatusProvider = ({ children }) => {
@@ -78,7 +78,7 @@ const ServerStatusProvider = ({ children }) => {
}
};
const setConfigField = ({ fieldName, value, path }: UpdateArgs) => {
const setFieldInConfigState = ({ fieldName, value, path }: UpdateArgs) => {
const updatedConfig = path ?
{
...config,
@@ -114,7 +114,7 @@ const ServerStatusProvider = ({ children }) => {
...status,
serverConfig: config,
setConfigField,
setFieldInConfigState,
};
return (
<ServerStatusContext.Provider value={providerValue}>