From 8cb6bbe43216cf845ac94d9987db59f304217218 Mon Sep 17 00:00:00 2001 From: Dan Dong Date: Fri, 23 Aug 2024 16:28:22 -0700 Subject: [PATCH] Revert button changes --- .../panels/auth-view/instruction-view.tsx | 1 + .../apps/configuration/panels/get-started.tsx | 27 ++++++++++--------- .../configuration/utils/display-utils.tsx | 10 +++---- .../utils/test/display-utils.test.tsx | 2 +- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/public/apps/configuration/panels/auth-view/instruction-view.tsx b/public/apps/configuration/panels/auth-view/instruction-view.tsx index 0e1c64bb7..0e53938e8 100644 --- a/public/apps/configuration/panels/auth-view/instruction-view.tsx +++ b/public/apps/configuration/panels/auth-view/instruction-view.tsx @@ -41,6 +41,7 @@ export function InstructionView(props: { config: ClientConfigType }) { {props.config.ui.backend_configurable && (
- + - { window.location.href = buildHashUrl(ResourceType.roles); }} > Explore existing roles - + - { window.location.href = buildHashUrl(ResourceType.users); }} > Map users to a role - + {' '}

- { window.location.href = buildHashUrl(ResourceType.auditLogging); }} > Review Audit Log Configuration - +
@@ -301,22 +304,22 @@ export function GetStarted(props: AppDependencies) {

- { window.location.href = buildHashUrl(ResourceType.tenants); }} > Manage Multi-tenancy - + - { window.location.href = buildHashUrl(ResourceType.tenantsConfigureTab); }} > Configure Multi-tenancy - + diff --git a/public/apps/configuration/utils/display-utils.tsx b/public/apps/configuration/utils/display-utils.tsx index 00d6a97ba..b1be5bfee 100644 --- a/public/apps/configuration/utils/display-utils.tsx +++ b/public/apps/configuration/utils/display-utils.tsx @@ -20,8 +20,8 @@ import { EuiText, EuiIcon, EuiFlexGroup, - EuiSmallButtonEmpty, - EuiButtonEmptyProps, + EuiSmallButton, + EuiButtonProps, EuiToolTip, EuiLink, } from '@elastic/eui'; @@ -131,12 +131,12 @@ export const displayHeaderWithTooltip = (columnHeader: string, tooltipText: stri ); }; -export function ExternalLinkButton(props: { text: string; href: string } & EuiButtonEmptyProps) { +export function ExternalLinkButton(props: { text: string; href: string } & EuiButtonProps) { const { text, ...buttonProps } = props; return ( - + {props.text} - + ); } diff --git a/public/apps/configuration/utils/test/display-utils.test.tsx b/public/apps/configuration/utils/test/display-utils.test.tsx index fa38d1472..caed8615c 100644 --- a/public/apps/configuration/utils/test/display-utils.test.tsx +++ b/public/apps/configuration/utils/test/display-utils.test.tsx @@ -91,7 +91,7 @@ describe('Display utils', () => { it('Render External Link Button', () => { const component = shallow( - + ); expect(component).toMatchSnapshot(); });