Skip to content

Commit

Permalink
Update styles typings
Browse files Browse the repository at this point in the history
Apply missing imports
  • Loading branch information
claracruz committed Mar 8, 2023
1 parent 2601baf commit c4ab3a0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import wellDoneAnimatedDarkGif from '../../../assets/well_done_animated_dark.gif
import { PluginState } from '../../../common';
import { GuideProgress } from './guide_progress';
import wellDoneAnimatedGif from '../../../assets/well_done_animated.gif';
import { getGuidePanelStyles } from '../guide_panel.styles';

export const GuidePanelFlyoutBody = ({
styles,
Expand All @@ -35,7 +36,7 @@ export const GuidePanelFlyoutBody = ({
isLoading,
completeGuide,
}: {
styles: any;
styles: ReturnType<typeof getGuidePanelStyles>;
guideConfig?: GuideConfig;
isDarkTheme: boolean;
stepsCompleted: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiText, EuiThemeComputed } from '@elastic/eui';
import React from 'react';
import { i18n } from '@kbn/i18n';
import { getGuidePanelStyles } from '../guide_panel.styles';

export const GuidePanelFlyoutFooter = ({
styles,
euiTheme,
openQuitGuideModal,
}: {
styles: any;
styles: ReturnType<typeof getGuidePanelStyles>;
euiTheme: EuiThemeComputed;
openQuitGuideModal: () => void;
}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, { ReactElement } from 'react';
import { EuiButtonIcon, EuiHorizontalRule, EuiSpacer, EuiTitle, keys } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import type { GuideConfig } from '@kbn/guided-onboarding';
import { getGuidePanelStyles } from '../guide_panel.styles';

export const GuidePanelFlyoutHeader = ({
styles,
Expand All @@ -20,7 +21,7 @@ export const GuidePanelFlyoutHeader = ({
guideConfig,
backButton,
}: {
styles: any;
styles: ReturnType<typeof getGuidePanelStyles>;
titleId: string;
toggleGuide: () => void;
hasError: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { GuideConfig, GuideStep as GuideStepType, StepConfig } from '@kbn/g
import { i18n } from '@kbn/i18n';
import { GuideStep } from '../guide_panel_step';
import type { PluginState } from '../../../common';
import { getGuidePanelStyles } from '../guide_panel.styles';

export const GuideProgress = ({
guideConfig,
Expand All @@ -23,7 +24,7 @@ export const GuideProgress = ({
handleStepButtonClick,
}: {
guideConfig: GuideConfig;
styles: any;
styles: ReturnType<typeof getGuidePanelStyles>;
pluginState: PluginState;
isLoading: boolean;
stepsCompleted: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { GuidePanelFlyoutHeader } from './guide_panel_flyout_header';
import { GuidePanelFlyoutBody } from './guide_panel_flyout_body';
import type { PluginState } from '../../../common';
import { GuidePanelFlyoutFooter } from './guide_panel_flyout_footer';
import { getGuidePanelStyles } from '../guide_panel.styles';

export const GuidePanelFlyout = ({
isOpen,
Expand All @@ -43,7 +44,7 @@ export const GuidePanelFlyout = ({
toggleGuide: () => void;
isGuideReadyToComplete: boolean;
guideConfig?: GuideConfig;
styles: any;
styles: ReturnType<typeof getGuidePanelStyles>;
navigateToLandingPage: () => void;
stepsCompleted: number;
pluginState?: PluginState;
Expand Down

0 comments on commit c4ab3a0

Please sign in to comment.