Refactor imports (#470)

This commit is contained in:
Camille Moussu
2026-01-20 17:33:30 +01:00
committed by GitHub
parent aeb8670895
commit 23d50f250d
149 changed files with 1439 additions and 1374 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
import { useAppDispatch, useAppSelector } from "@/app/hooks";
import { Loading } from "@/components/Loading/Loading";
import { redirectTo } from "@/utils/apiUtils";
import { useEffect, useRef } from "react";
import { useAppDispatch, useAppSelector } from "../../app/hooks";
import { Auth } from "./oidcAuth";
import { Loading } from "../../components/Loading/Loading";
import { push } from "redux-first-history";
import { redirectTo } from "../../utils/apiUtils";
import { getCalendarsListAsync } from "../Calendars/services";
import { Auth } from "./oidcAuth";
import { getOpenPaasUserDataAsync, setTokens, setUserData } from "./userSlice";
import { getCalendarsListAsync } from "../Calendars/services/getCalendarsListAsync";
export function HandleLogin() {
const userData = useAppSelector((state) => state.user);
+4 -4
View File
@@ -1,15 +1,15 @@
import { useAppDispatch } from "@/app/hooks";
import { Loading } from "@/components/Loading/Loading";
import { useEffect, useRef } from "react";
import { Callback } from "./oidcAuth";
import { useAppDispatch } from "../../app/hooks";
import { push } from "redux-first-history";
import { getCalendarsListAsync } from "../Calendars/services";
import { Callback } from "./oidcAuth";
import {
getOpenPaasUserDataAsync,
setTokens,
setUserData,
setUserError,
} from "./userSlice";
import { Loading } from "../../components/Loading/Loading";
import { getCalendarsListAsync } from "../Calendars/services/getCalendarsListAsync";
export function CallbackResume() {
const dispatch = useAppDispatch();
+1 -1
View File
@@ -1,5 +1,5 @@
import * as client from "openid-client";
import { getLocation } from "../../utils/apiUtils";
import { getLocation } from "@/utils/apiUtils";
export const clientConfig = {
url: (window as any).SSO_BASE_URL ?? "",
+2 -2
View File
@@ -1,5 +1,5 @@
import { User } from "../../components/Attendees/PeopleSearch";
import { api } from "../../utils/apiUtils";
import { User } from "@/components/Attendees/PeopleSearch";
import { api } from "@/utils/apiUtils";
export async function getOpenPaasUser() {
const user = await api.get(`api/user`);
+2 -2
View File
@@ -1,11 +1,11 @@
import { formatReduxError } from "@/utils/errorUtils";
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { userData, userOrganiser } from "./userDataTypes";
import {
getOpenPaasUser,
updateUserConfigurations,
UserConfigurationUpdates,
} from "./userAPI";
import { formatReduxError } from "../../utils/errorUtils";
import { userData, userOrganiser } from "./userDataTypes";
export const getOpenPaasUserDataAsync = createAsyncThunk<
Record<string, any>,