Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer validator sorting #7481

Merged
merged 12 commits into from
Jan 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added types
  • Loading branch information
Jibz1 committed Jan 21, 2023
commit 4e3f1cc9bc3af966d93b062b7158cb822df140a8
8 changes: 7 additions & 1 deletion apps/explorer/src/ui/stories/TableCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import { type StoryObj, type Meta } from '@storybook/react';

import { TableCard, type TableCardProps } from '../TableCard';

type DataType = {
sardines: string | JSX.Element;
herrings: string | JSX.Element;
salmon: string;
};

const data = {
data: [
{
Expand Down Expand Up @@ -61,6 +67,6 @@ export default {
component: TableCard,
} as Meta;

export const VaryingWidth: StoryObj<TableCardProps> = {
export const VaryingWidth: StoryObj<TableCardProps<DataType>> = {
render: () => <TableCard data={data.data} columns={data.columns} />,
};