Skip to content

Commit

Permalink
Add icons to argstable to match other empty states
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Lloyd committed Jan 15, 2024
1 parent e5db6e1 commit 2c95d3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions code/ui/blocks/src/components/ArgsTable/ArgsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { includeConditionalArg } from '@storybook/csf';
import { once } from '@storybook/client-logger';
import { IconButton, ResetWrapper, Link } from '@storybook/components';

import { UndoIcon } from '@storybook/icons';
import { DocumentIcon, UndoIcon } from '@storybook/icons';
import { ArgRow } from './ArgRow';
import { SectionRow } from './SectionRow';
import type { ArgType, ArgTypes, Args, Globals } from './types';
Expand Down Expand Up @@ -323,7 +323,7 @@ export const ArgsTable: FC<ArgsTableProps> = (props) => {
<EmptyBlock>
{error}&nbsp;
<Link href="http://storybook.js.org/docs/" target="_blank" withArrow>
Read the docs
<DocumentIcon /> Read the docs
</Link>
</EmptyBlock>
);
Expand Down
14 changes: 5 additions & 9 deletions code/ui/blocks/src/components/ArgsTable/Empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FC } from 'react';
import React, { useEffect, useState } from 'react';
import { styled } from '@storybook/theming';
import { Link } from '@storybook/components';
import { VideoIcon } from '@storybook/icons';
import { DocumentIcon, SupportIcon, VideoIcon } from '@storybook/icons';

interface EmptyProps {
inAddonPanel?: boolean;
Expand Down Expand Up @@ -92,21 +92,17 @@ export const Empty: FC<EmptyProps> = ({ inAddonPanel }) => {
</Link>
<Divider />
<Link
href="https://storybook.js.org/docs/react/essentials/controls"
href="https://storybook.js.org/docs/essentials/controls"
target="_blank"
withArrow
>
Read docs
<DocumentIcon /> Read docs
</Link>
</>
)}
{!inAddonPanel && (
<Link
href="https://storybook.js.org/docs/react/essentials/controls"
target="_blank"
withArrow
>
Learn how to set that up
<Link href="https://storybook.js.org/docs/essentials/controls" target="_blank" withArrow>
<SupportIcon /> Learn how to set that up
</Link>
)}
</Links>
Expand Down

0 comments on commit 2c95d3b

Please sign in to comment.