Fixed linter issues
This commit is contained in:
parent
e23ac4cc27
commit
39e1a036a4
@ -4,7 +4,7 @@ import type { PageProps } from "keycloakify/login/pages/PageProps";
|
|||||||
import type { KcContext } from "../KcContext";
|
import type { KcContext } from "../KcContext";
|
||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
|
|
||||||
const { Title, Paragraph } = Typography;
|
const { Paragraph } = Typography;
|
||||||
|
|
||||||
export default function FrontchannelLogout(props: PageProps<Extract<KcContext, { pageId: "frontchannel-logout.ftl" }>, I18n>) {
|
export default function FrontchannelLogout(props: PageProps<Extract<KcContext, { pageId: "frontchannel-logout.ftl" }>, I18n>) {
|
||||||
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import * as FaIcons from "react-icons/fa6"; // Import all FA6 icons dynamically
|
|||||||
import type { IconType } from "react-icons";
|
import type { IconType } from "react-icons";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
const { Title, Text, Link } = Typography;
|
const { Text, Link } = Typography;
|
||||||
|
|
||||||
export default function Login(props: PageProps<Extract<KcContext, { pageId: "login.ftl" }>, I18n>) {
|
export default function Login(props: PageProps<Extract<KcContext, { pageId: "login.ftl" }>, I18n>) {
|
||||||
const { kcContext, i18n, Template } = props;
|
const { kcContext, i18n, Template } = props;
|
||||||
@ -41,7 +41,7 @@ export default function Login(props: PageProps<Extract<KcContext, { pageId: "log
|
|||||||
form.submit(); // Simulate actual form submission
|
form.submit(); // Simulate actual form submission
|
||||||
};
|
};
|
||||||
|
|
||||||
const { social, realm, url, usernameHidden, login, auth, registrationDisabled, client } = kcContext;
|
const { social, realm, url, usernameHidden, login, auth, registrationDisabled } = kcContext;
|
||||||
|
|
||||||
const { msg, msgStr } = i18n;
|
const { msg, msgStr } = i18n;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { useState } from "react";
|
|||||||
import { PageProps } from "keycloakify/login/pages/PageProps";
|
import { PageProps } from "keycloakify/login/pages/PageProps";
|
||||||
import { KcContext } from "../KcContext";
|
import { KcContext } from "../KcContext";
|
||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
import { Typography, Space, List, Button, Flex, Divider, Alert } from "antd";
|
import { Typography, Space, List, Button, Flex, Alert } from "antd";
|
||||||
|
|
||||||
const { Text, Link } = Typography;
|
const { Text, Link } = Typography;
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import type { KcContext } from "../KcContext";
|
|||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
const { Title, Text, Link } = Typography;
|
const { Text, Link } = Typography;
|
||||||
|
|
||||||
export default function LogoutConfirm(props: PageProps<Extract<KcContext, { pageId: "logout-confirm.ftl" }>, I18n>) {
|
export default function LogoutConfirm(props: PageProps<Extract<KcContext, { pageId: "logout-confirm.ftl" }>, I18n>) {
|
||||||
const { kcContext, i18n, Template } = props;
|
const { kcContext, i18n, Template } = props;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { Form, Button, Checkbox, Typography, Space, Divider, FormProps, FormItemProps } from "antd";
|
import { Form, Button, Checkbox, Typography, Space, FormProps, FormItemProps } from "antd";
|
||||||
import type { JSX } from "keycloakify/tools/JSX";
|
import type { JSX } from "keycloakify/tools/JSX";
|
||||||
import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
|
import type { LazyOrNot } from "keycloakify/tools/LazyOrNot";
|
||||||
import { kcSanitize } from "keycloakify/lib/kcSanitize";
|
import { kcSanitize } from "keycloakify/lib/kcSanitize";
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import type { KcContext } from "../KcContext";
|
|||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
const { Title, Paragraph } = Typography;
|
const { Paragraph } = Typography;
|
||||||
|
|
||||||
export default function Terms(props: PageProps<Extract<KcContext, { pageId: "terms.ftl" }>, I18n>) {
|
export default function Terms(props: PageProps<Extract<KcContext, { pageId: "terms.ftl" }>, I18n>) {
|
||||||
const { kcContext, i18n, Template } = props;
|
const { kcContext, i18n, Template } = props;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import type { KcContext } from "../KcContext";
|
|||||||
import type { I18n } from "../i18n";
|
import type { I18n } from "../i18n";
|
||||||
import { useScript } from "keycloakify/login/pages/WebauthnAuthenticate.useScript";
|
import { useScript } from "keycloakify/login/pages/WebauthnAuthenticate.useScript";
|
||||||
|
|
||||||
const { Title, Text, Link } = Typography;
|
const { Text, Link } = Typography;
|
||||||
|
|
||||||
// Define interfaces for better TypeScript support
|
// Define interfaces for better TypeScript support
|
||||||
interface Authenticator {
|
interface Authenticator {
|
||||||
@ -24,7 +24,7 @@ export default function WebauthnAuthenticate(props: PageProps<Extract<KcContext,
|
|||||||
|
|
||||||
const [isLoading, setIsLoading] = React.useState(false);
|
const [isLoading, setIsLoading] = React.useState(false);
|
||||||
|
|
||||||
const { url, realm, registrationDisabled, authenticators, shouldDisplayAuthenticators, client, message } = kcContext;
|
const { url, realm, registrationDisabled, authenticators, shouldDisplayAuthenticators, message } = kcContext;
|
||||||
|
|
||||||
const { msg, msgStr, advancedMsg } = i18n;
|
const { msg, msgStr, advancedMsg } = i18n;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user