Skip to content

Commit

Permalink
[Observability Onboarding] Remove temporary onboarding flow nav (elas…
Browse files Browse the repository at this point in the history
…tic#181069)

## Summary

Resolves elastic#180823.

We had temporary nav in lieu of the integrations list being merged. We
no longer need the temp nav so this removes it.

Co-authored-by: Joe Reuter <[email protected]>
  • Loading branch information
justinkambic and flash1293 authored Apr 22, 2024
1 parent d7a2fe2 commit 6299736
Showing 1 changed file with 1 addition and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@
import { i18n } from '@kbn/i18n';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import React from 'react';
import { useHistory } from 'react-router-dom';
import { Route, Routes } from '@kbn/shared-ux-router';
import { reactRouterNavigate } from '@kbn/kibana-react-plugin/public';
import { useNavigate, useLocation } from 'react-router-dom-v5-compat';
import {
EuiButton,
EuiButtonEmpty,
EuiFlexGroup,
EuiFlexItem,
EuiPageTemplate,
EuiSpacer,
} from '@elastic/eui';
import { EuiButtonEmpty, EuiPageTemplate, EuiSpacer } from '@elastic/eui';
import { css } from '@emotion/react';
import backgroundImageUrl from './header/background.svg';
import { Footer } from './footer/footer';
Expand All @@ -31,40 +22,8 @@ import { CustomLogsPanel } from './quickstart_flows/custom_logs';
const queryClient = new QueryClient();

export function ExperimentalOnboardingFlow() {
const history = useHistory();
const location = useLocation();

return (
<QueryClientProvider client={queryClient}>
{/* Test buttons to be removed once integrations selector has been implemented */}
<EuiPageTemplate.Section grow={false} color="accent" restrictWidth>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButton
data-test-subj="observabilityOnboardingExperimentalOnboardingFlowSystemLogsButton"
{...reactRouterNavigate(history, `/systemLogs/${location.search}`)}
color="accent"
>
{i18n.translate(
'xpack.observability_onboarding.experimentalOnboardingFlow.systemLogsButtonLabel',
{ defaultMessage: 'System Logs' }
)}
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButton
data-test-subj="observabilityOnboardingExperimentalOnboardingFlowCustomLogsButton"
{...reactRouterNavigate(history, `/customLogs/${location.search}`)}
color="accent"
>
{i18n.translate(
'xpack.observability_onboarding.experimentalOnboardingFlow.customLogsButtonLabel',
{ defaultMessage: 'Custom Logs' }
)}
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiPageTemplate.Section>
<EuiPageTemplate.Section
paddingSize="xl"
css={css`
Expand Down

0 comments on commit 6299736

Please sign in to comment.