Remove @mdi/js as a dependency
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Alert, Box, Button, CircularProgress } from "@mui/material";
|
||||
import Icon from "@mdi/react";
|
||||
import { mdiOpenid } from "@mdi/js";
|
||||
import { Alert, Box, Button, CircularProgress, SvgIcon } from "@mui/material";
|
||||
import { ServerApi } from "../../api/ServerApi";
|
||||
import React from "react";
|
||||
import { AuthApi } from "../../api/AuthApi";
|
||||
import openid from "../../icons/openid.svg";
|
||||
import { createSvgIcon } from "@mui/x-data-grid/internals";
|
||||
import { AppIcon } from "../../icons/AppIcon";
|
||||
|
||||
export function LoginRoute(): React.ReactElement {
|
||||
const [loading, setLoading] = React.useState(false);
|
||||
@@ -40,7 +41,7 @@ export function LoginRoute(): React.ReactElement {
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
onClick={authWithOpenID}
|
||||
startIcon={<Icon path={mdiOpenid} size={1} />}
|
||||
startIcon={<AppIcon src={openid} />}
|
||||
>
|
||||
Sign in with {ServerApi.Config.oidc_provider_name}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user