chore: upgrade package-lock and fix breaking changes

This commit is contained in:
acceis-international
2025-03-26 16:08:07 +01:00
parent 8e828311fe
commit 60f8d38baf
3 changed files with 4383 additions and 10111 deletions

14468
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@ const useTranslate = () => {
values?: Parameters<typeof intl.formatMessage>[1],
opts?: Parameters<typeof intl.formatMessage>[2],
) => {
return intl.formatMessage({ id }, values, opts) as string;
return intl.formatMessage({ id }, values, opts) as unknown as string;
};
};
@@ -32,7 +32,7 @@ export const translateOutsideContext = () => {
values?: Parameters<typeof intl.formatMessage>[1],
opts?: Parameters<typeof intl.formatMessage>[2],
) => {
return intl.formatMessage({ id }, values, opts) as string;
return intl.formatMessage({ id }, values, opts) as unknown as string;
};
};

View File

@@ -1,10 +1,10 @@
import {
SiDiscord,
SiGithub,
SiGoogle,
SiMicrosoft,
SiOpenid,
} from "react-icons/si";
FaDiscord,
FaGithub,
FaGoogle,
FaMicrosoft,
FaOpenid,
} from "react-icons/fa6";
import React from "react";
import api from "../services/api.service";
@@ -14,11 +14,11 @@ const getOAuthUrl = (appUrl: string, provider: string) => {
const getOAuthIcon = (provider: string) => {
return {
google: <SiGoogle />,
microsoft: <SiMicrosoft />,
github: <SiGithub />,
discord: <SiDiscord />,
oidc: <SiOpenid />,
google: <FaGoogle />,
microsoft: <FaMicrosoft />,
github: <FaGithub />,
discord: <FaDiscord />,
oidc: <FaOpenid />,
}[provider];
};