Fix linting issues
Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
eedfd0ef51
commit
df4b6c871d
9 changed files with 16 additions and 16 deletions
|
@ -120,7 +120,7 @@ export const Oid4Vci = () => {
|
|||
<img
|
||||
width="500"
|
||||
height="500"
|
||||
src={`${qrCode}`}
|
||||
src={qrCode}
|
||||
data-testid="qr-code"
|
||||
/>
|
||||
</ActionListItem>
|
||||
|
|
|
@ -25,7 +25,7 @@ export const DecisionStrategySelect = ({
|
|||
label={t("decisionStrategy")}
|
||||
labelIcon={
|
||||
<HelpItem
|
||||
helpText={t(`${helpLabel || "decisionStrategyHelp"}`)}
|
||||
helpText={t(helpLabel || "decisionStrategyHelp")}
|
||||
fieldLabelId="decisionStrategy"
|
||||
/>
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ const adminGuide =
|
|||
const keycloakHomepageURL = "https://www.keycloak.org";
|
||||
|
||||
export default {
|
||||
documentationUrl: `${adminGuide}`,
|
||||
documentationUrl: adminGuide,
|
||||
clientsUrl: `${adminGuide}#assembly-managing-clients_server_administration_guide`,
|
||||
clientScopesUrl: `${adminGuide}#_client_scopes`,
|
||||
realmRolesUrl: `${adminGuide}#assigning-permissions-using-roles-and-groups`,
|
||||
|
|
|
@ -121,7 +121,7 @@ const Fields = ({ readOnly }: DiscoverySettingsProps) => {
|
|||
}}
|
||||
options={PKCE_METHODS.map((option) => ({
|
||||
key: option,
|
||||
value: t(`${option}`),
|
||||
value: t(option),
|
||||
}))}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -86,7 +86,7 @@ export const RealmSettingsThemesTab = ({
|
|||
key={`login-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
{t(theme.name)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</KeycloakSelect>
|
||||
|
@ -130,7 +130,7 @@ export const RealmSettingsThemesTab = ({
|
|||
key={`account-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
{t(theme.name)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</KeycloakSelect>
|
||||
|
@ -174,7 +174,7 @@ export const RealmSettingsThemesTab = ({
|
|||
key={`admin-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
{t(theme.name)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</KeycloakSelect>
|
||||
|
@ -216,7 +216,7 @@ export const RealmSettingsThemesTab = ({
|
|||
key={`email-theme-${idx}`}
|
||||
value={theme.name}
|
||||
>
|
||||
{t(`${theme.name}`)}
|
||||
{t(theme.name)}
|
||||
</SelectOption>
|
||||
))}
|
||||
</KeycloakSelect>
|
||||
|
|
|
@ -66,7 +66,7 @@ export default function UserFederationKerberosSettings() {
|
|||
);
|
||||
} catch (error) {
|
||||
addError(
|
||||
`${!id ? "createUserProviderError" : "userProviderSaveError"}`,
|
||||
!id ? "createUserProviderError" : "userProviderSaveError",
|
||||
error,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -158,8 +158,8 @@ export default function UserFederationSection() {
|
|||
footerText={toUpperCase(userFederation.providerId!)}
|
||||
labelText={
|
||||
userFederation.config?.["enabled"]?.[0] !== "false"
|
||||
? `${t("enabled")}`
|
||||
: `${t("disabled")}`
|
||||
? t("enabled")
|
||||
: t("disabled")
|
||||
}
|
||||
labelColor={
|
||||
userFederation.config?.["enabled"]?.[0] !== "false"
|
||||
|
|
|
@ -96,7 +96,7 @@ export default function CustomProviderSettings() {
|
|||
);
|
||||
} catch (error) {
|
||||
addError(
|
||||
`${!id ? "createUserProviderError" : "userProviderSaveError"}`,
|
||||
!id ? "createUserProviderError" : "userProviderSaveError",
|
||||
error,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -31,8 +31,8 @@ const CacheFields = ({ form }: { form: UseFormReturn }) => {
|
|||
});
|
||||
|
||||
const hourOptions = [
|
||||
<SelectOption key={0} value={[`${0}`]}>
|
||||
{[`0${0}`]}
|
||||
<SelectOption key={0} value={[`0`]}>
|
||||
{[`00`]}
|
||||
</SelectOption>,
|
||||
];
|
||||
let hourDisplay = "";
|
||||
|
@ -50,8 +50,8 @@ const CacheFields = ({ form }: { form: UseFormReturn }) => {
|
|||
}
|
||||
|
||||
const minuteOptions = [
|
||||
<SelectOption key={0} value={[`${0}`]}>
|
||||
{[`0${0}`]}
|
||||
<SelectOption key={0} value={[`0`]}>
|
||||
{[`00`]}
|
||||
</SelectOption>,
|
||||
];
|
||||
let minuteDisplay = "";
|
||||
|
|
Loading…
Reference in a new issue