Skip to content

Commit

Permalink
feat(blog): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-jpg committed Dec 10, 2023
1 parent 6ed7125 commit f698c62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/components/OnboardingGuide/Guide/Guide.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import type {ReactNode} from 'react';

import {Icon, Progress} from '@gravity-ui/uikit';
import {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types';
Expand All @@ -11,17 +10,17 @@ import './Guide.scss';
const cnGuide = block('guide');

export type GuideProps = {
title: string | ReactNode;
title: string | React.ReactNode;
progressBarCurrentValue: number;
icon?: SVGIconData;

expand: boolean;

isLoading: boolean;

children?: ReactNode;
loadingNode?: ReactNode;
buttons?: ReactNode[];
children?: React.ReactNode;
loadingNode?: React.ReactNode;
buttons?: React.ReactNode[];

onHeaderClick: () => void;
};
Expand All @@ -43,6 +42,7 @@ export const Guide = ({
<div

Check failure on line 42 in src/components/OnboardingGuide/Guide/Guide.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
className={cnGuide('header', {state: expand && 'expanded'})}
onClick={onHeaderClick}
onKeyDown={onHeaderClick}
>
<div className={cnGuide('title')}>
{icon ? (
Expand All @@ -62,7 +62,7 @@ export const Guide = ({
</div>

{expand && (
<>
<React.Fragment>
<div
className={cnGuide('lining', {
state: expand ? 'expanded' : 'closed',
Expand All @@ -71,7 +71,7 @@ export const Guide = ({
{isLoading ? loadingNode : children}
</div>
<div className={cnGuide('buttons')}>{buttons}</div>
</>
</React.Fragment>
)}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {useMemo, useState} from 'react';
import {useMemo, useState} from 'react';

Check failure on line 1 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead

Check failure on line 1 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead
import * as React from 'react';

Check failure on line 2 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead
import type {ReactNode} from 'react';

Check failure on line 3 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead

import {Clock} from '@gravity-ui/icons';
Expand Down

0 comments on commit f698c62

Please sign in to comment.