chore: upgrade package-lock and fix breaking changes
This commit is contained in:
14472
frontend/package-lock.json
generated
14472
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@ const useTranslate = () => {
|
|||||||
values?: Parameters<typeof intl.formatMessage>[1],
|
values?: Parameters<typeof intl.formatMessage>[1],
|
||||||
opts?: Parameters<typeof intl.formatMessage>[2],
|
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],
|
values?: Parameters<typeof intl.formatMessage>[1],
|
||||||
opts?: Parameters<typeof intl.formatMessage>[2],
|
opts?: Parameters<typeof intl.formatMessage>[2],
|
||||||
) => {
|
) => {
|
||||||
return intl.formatMessage({ id }, values, opts) as string;
|
return intl.formatMessage({ id }, values, opts) as unknown as string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
SiDiscord,
|
FaDiscord,
|
||||||
SiGithub,
|
FaGithub,
|
||||||
SiGoogle,
|
FaGoogle,
|
||||||
SiMicrosoft,
|
FaMicrosoft,
|
||||||
SiOpenid,
|
FaOpenid,
|
||||||
} from "react-icons/si";
|
} from "react-icons/fa6";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import api from "../services/api.service";
|
import api from "../services/api.service";
|
||||||
|
|
||||||
@@ -14,11 +14,11 @@ const getOAuthUrl = (appUrl: string, provider: string) => {
|
|||||||
|
|
||||||
const getOAuthIcon = (provider: string) => {
|
const getOAuthIcon = (provider: string) => {
|
||||||
return {
|
return {
|
||||||
google: <SiGoogle />,
|
google: <FaGoogle />,
|
||||||
microsoft: <SiMicrosoft />,
|
microsoft: <FaMicrosoft />,
|
||||||
github: <SiGithub />,
|
github: <FaGithub />,
|
||||||
discord: <SiDiscord />,
|
discord: <FaDiscord />,
|
||||||
oidc: <SiOpenid />,
|
oidc: <FaOpenid />,
|
||||||
}[provider];
|
}[provider];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user