From 335e408d281b7b3efe6ca2ee328dc4c6e5139b2f Mon Sep 17 00:00:00 2001 From: jenny-s51 Date: Fri, 30 Apr 2021 14:48:57 -0400 Subject: [PATCH] wip providers table --- src/realm-settings/KeysListTab.tsx | 52 ++++--- src/realm-settings/KeysProvidersTab.tsx | 191 ++++++++++++++++++++++++ src/realm-settings/messages.json | 2 + 3 files changed, 225 insertions(+), 20 deletions(-) create mode 100644 src/realm-settings/KeysProvidersTab.tsx diff --git a/src/realm-settings/KeysListTab.tsx b/src/realm-settings/KeysListTab.tsx index 766bdc59fd..b926fa5c49 100644 --- a/src/realm-settings/KeysListTab.tsx +++ b/src/realm-settings/KeysListTab.tsx @@ -62,30 +62,36 @@ export const KeysTabInner = ({ keys }: KeysTabInnerProps) => { return <>{provider}; }; - const renderPublicKeyButton = (publicKey: string) => { - return ( - - ); - }; - const ButtonRenderer = ({ provider, publicKey, certificate }: KeyData) => { if (provider === "ecdsa-generated") { - return <>{renderPublicKeyButton(publicKey!)}; - } - if (provider === "rsa-generated" || provider === "fallback-RS256") { + return ( + <> + + + ); + } else if (provider === "rsa-generated" || provider === "fallback-RS256") { return ( <>
- {renderPublicKeyButton(publicKey!)} +