Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/admin-ui-picard' into fix-proxys…
Browse files Browse the repository at this point in the history
…erver-crashing
  • Loading branch information
Arnei committed Feb 28, 2024
2 parents 3af97a1 + ce1ad18 commit 52dc46e
Show file tree
Hide file tree
Showing 203 changed files with 4,644 additions and 5,930 deletions.
25 changes: 9 additions & 16 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useEffect } from "react";
import { connect } from "react-redux";
import { HashRouter, Navigate, Route, Routes } from "react-router-dom";
import "./App.scss";
import Events from "./components/events/Events";
Expand All @@ -13,18 +12,18 @@ import Servers from "./components/systems/Servers";
import Services from "./components/systems/Services";
import Groups from "./components/users/Groups";
import Acls from "./components/users/Acls";
import { fetchOcVersion, fetchUserInfo } from "./thunks/userInfoThunks";
import { useAppDispatch } from "./store";
import { fetchOcVersion, fetchUserInfo } from "./slices/userInfoSlice";

function App({
loadingUserInfo,
loadingOcVersion
}: any) {
function App() {
const dispatch = useAppDispatch();
useEffect(() => {
// Load information about current user on mount
loadingUserInfo();
dispatch(fetchUserInfo());
// Load information about current opencast version on mount
loadingOcVersion();
}, [loadingOcVersion, loadingUserInfo]);
dispatch(fetchOcVersion());
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
<HashRouter>
Expand Down Expand Up @@ -63,10 +62,4 @@ function App({
);
}

// @ts-expect-error TS(7006): Parameter 'dispatch' implicitly has an 'any' type.
const mapDispatchToProps = (dispatch) => ({
loadingUserInfo: () => dispatch(fetchUserInfo()),
loadingOcVersion: () => dispatch(fetchOcVersion()),
});

export default connect(null, mapDispatchToProps)(App);
export default App;
24 changes: 0 additions & 24 deletions app/src/actions/aclDetailsActions.ts

This file was deleted.

95 changes: 0 additions & 95 deletions app/src/actions/eventActions.ts

This file was deleted.

35 changes: 0 additions & 35 deletions app/src/actions/groupActions.ts

This file was deleted.

24 changes: 0 additions & 24 deletions app/src/actions/groupDetailsActions.ts

This file was deleted.

35 changes: 0 additions & 35 deletions app/src/actions/jobActions.ts

This file was deleted.

52 changes: 0 additions & 52 deletions app/src/actions/notificationActions.ts

This file was deleted.

35 changes: 0 additions & 35 deletions app/src/actions/recordingActions.ts

This file was deleted.

25 changes: 0 additions & 25 deletions app/src/actions/recordingDetailsActions.ts

This file was deleted.

Loading

0 comments on commit 52dc46e

Please sign in to comment.