Skip to content

Convert indentation to spaces #1134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,59 +17,59 @@ import { useAppDispatch } from "./store";
import { fetchOcVersion, fetchUserInfo } from "./slices/userInfoSlice";

function App() {
const dispatch = useAppDispatch();
useEffect(() => {
// Load information about current user on mount
dispatch(fetchUserInfo());
// Load information about current opencast version on mount
dispatch(fetchOcVersion());
const dispatch = useAppDispatch();
useEffect(() => {
// Load information about current user on mount
dispatch(fetchUserInfo());
// Load information about current opencast version on mount
dispatch(fetchOcVersion());

// Add event listener for back button to check if we are still logged in
window.addEventListener("popstate", function(event) {
dispatch(fetchUserInfo());
});
// Add event listener for back button to check if we are still logged in
window.addEventListener("popstate", function(event) {
dispatch(fetchUserInfo());
});

// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
<HashRouter>
<Routes>
<Route path={"/"} element={<Events />} />
return (
<HashRouter>
<Routes>
<Route path={"/"} element={<Events />} />

<Route path={"/events/events"} element={<Events />} />
<Route path={"/events/events"} element={<Events />} />

<Route path={"/events/series"} element={<Series />} />
<Route path={"/events/series"} element={<Series />} />

<Route path={"/recordings/recordings"} element={<Recordings />} />
<Route path={"/recordings/recordings"} element={<Recordings />} />

<Route path={"/systems/jobs"} element={<Jobs />} />
<Route path={"/systems/jobs"} element={<Jobs />} />

<Route path={"/systems/servers"} element={<Servers />} />
<Route path={"/systems/servers"} element={<Servers />} />

<Route path={"/systems/services"} element={<Services />} />
<Route path={"/systems/services"} element={<Services />} />

<Route path={"/users/users"} element={<Users />} />
<Route path={"/users/users"} element={<Users />} />

<Route path={"/users/groups"} element={<Groups />} />
<Route path={"/users/groups"} element={<Groups />} />

<Route path={"/users/acls"} element={<Acls />} />
<Route path={"/users/acls"} element={<Acls />} />

<Route path={"/configuration/themes"} element={<Themes />} />
<Route path={"/configuration/themes"} element={<Themes />} />

<Route path={"/statistics/organization"} element={<Statistics />} />
<Route path={"/statistics/organization"} element={<Statistics />} />

<Route path={"/about/imprint"} element={<About />} />
<Route path={"/about/imprint"} element={<About />} />

<Route path={"/about/privacy"} element={<About />} />
<Route path={"/about/privacy"} element={<About />} />

<Route
path={"*"}
element={<Navigate to={"/events/events"} replace />}
/>
</Routes>
</HashRouter>
);
<Route
path={"*"}
element={<Navigate to={"/events/events"} replace />}
/>
</Routes>
</HashRouter>
);
}

export default App;
Loading
Loading