Cleanup and update some dependencies

This commit is contained in:
Dane Everitt 2020-12-27 11:18:33 -08:00
parent 7f8ae7a8f9
commit 2463c3f492
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 80 additions and 171 deletions

View file

@ -17,8 +17,7 @@ const NetworkContainer = () => {
const [ loading, setLoading ] = useState(false);
const uuid = ServerContext.useStoreState(state => state.server.data!.uuid);
const allocationLimit = ServerContext.useStoreState(state => state.server.data!.featureLimits.allocations);
// @ts-ignore
const allocations: Allocation[] = ServerContext.useStoreState(state => state.server.data!.allocations, isEqual);
const allocations = ServerContext.useStoreState(state => state.server.data!.allocations, isEqual);
const setServerFromState = ServerContext.useStoreActions(actions => actions.server.setServerFromState);
const { clearFlashes, clearAndAddHttpError } = useFlash();