From eb40cabf030735ec875a9a6c5ec9e0d2149d210c Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Fri, 1 Oct 2021 12:52:45 +0200 Subject: [PATCH] Use type-safe alternative for links (#1280) --- src/PageHeader.tsx | 6 +++--- src/authentication/AuthenticationSection.tsx | 6 +++--- src/client-scopes/ClientScopesSection.tsx | 7 +++++-- src/client-scopes/details/MappingDetails.tsx | 9 ++++++--- src/clients/ClientsSection.tsx | 13 ++++++++----- src/clients/import/ImportForm.tsx | 8 ++++++-- .../initial-access/CreateInitialAccessToken.tsx | 9 ++++++--- .../initial-access/InitialAccessTokenList.tsx | 13 +++++++------ src/identity-providers/add/DetailSettings.tsx | 1 - src/realm-settings/NewClientProfileForm.tsx | 9 ++++++--- src/realm-settings/ProfilesTab.tsx | 6 +++--- 11 files changed, 53 insertions(+), 34 deletions(-) diff --git a/src/PageHeader.tsx b/src/PageHeader.tsx index d193c0d9ea..3e0983082a 100644 --- a/src/PageHeader.tsx +++ b/src/PageHeader.tsx @@ -56,9 +56,9 @@ export const Header = () => { return ( ( + + )} > {t("realmInfo")} diff --git a/src/authentication/AuthenticationSection.tsx b/src/authentication/AuthenticationSection.tsx index 6fd9f24d7d..913277c232 100644 --- a/src/authentication/AuthenticationSection.tsx +++ b/src/authentication/AuthenticationSection.tsx @@ -223,9 +223,9 @@ export const AuthenticationSection = () => { toolbarItem={ diff --git a/src/client-scopes/ClientScopesSection.tsx b/src/client-scopes/ClientScopesSection.tsx index 19ee99cc14..1eb1404bc6 100644 --- a/src/client-scopes/ClientScopesSection.tsx +++ b/src/client-scopes/ClientScopesSection.tsx @@ -204,8 +204,11 @@ export const ClientScopesSection = () => { /> - {/* @ts-ignore */} - diff --git a/src/client-scopes/details/MappingDetails.tsx b/src/client-scopes/details/MappingDetails.tsx index 526de2e37d..0b52ad5d5c 100644 --- a/src/client-scopes/details/MappingDetails.tsx +++ b/src/client-scopes/details/MappingDetails.tsx @@ -242,9 +242,12 @@ export const MappingDetails = () => { diff --git a/src/clients/ClientsSection.tsx b/src/clients/ClientsSection.tsx index f2a35b799a..fcaf4d9fdb 100644 --- a/src/clients/ClientsSection.tsx +++ b/src/clients/ClientsSection.tsx @@ -117,16 +117,19 @@ export const ClientsSection = () => { toolbarItem={ <> - {/* @ts-ignore */} - - {/* @ts-ignore */} - diff --git a/src/clients/initial-access/CreateInitialAccessToken.tsx b/src/clients/initial-access/CreateInitialAccessToken.tsx index 7b2f836f21..996f4cda29 100644 --- a/src/clients/initial-access/CreateInitialAccessToken.tsx +++ b/src/clients/initial-access/CreateInitialAccessToken.tsx @@ -130,9 +130,12 @@ export const CreateInitialAccessToken = () => { diff --git a/src/clients/initial-access/InitialAccessTokenList.tsx b/src/clients/initial-access/InitialAccessTokenList.tsx index 2ac72d4d71..f54853dac1 100644 --- a/src/clients/initial-access/InitialAccessTokenList.tsx +++ b/src/clients/initial-access/InitialAccessTokenList.tsx @@ -55,12 +55,13 @@ export const InitialAccessTokenList = () => { searchPlaceholderKey="clients:searchInitialAccessToken" loader={loader} toolbarItem={ - <> - {/* @ts-ignore */} - - + } actions={[ { diff --git a/src/identity-providers/add/DetailSettings.tsx b/src/identity-providers/add/DetailSettings.tsx index a685494319..a7b7185c39 100644 --- a/src/identity-providers/add/DetailSettings.tsx +++ b/src/identity-providers/add/DetailSettings.tsx @@ -321,7 +321,6 @@ export const DetailSettings = () => { toolbarItem={ {