-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melisa Anabella Rossi
authored
Jan 18, 2024
1 parent
54c77ba
commit fd9c466
Showing
12 changed files
with
665 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react' | ||
import TableContainer from './TableContainer' | ||
import { TableContent } from './TableContent' | ||
import { ComponentMeta, ComponentStory } from '@storybook/react' | ||
|
||
export default { | ||
title: 'V2/Table', | ||
component: TableContainer | ||
} as ComponentMeta<typeof TableContainer> | ||
|
||
const Template: ComponentStory<typeof TableContainer> = (args) => ( | ||
<TableContainer {...args} /> | ||
) | ||
|
||
export const Basic = Template.bind({}) | ||
Basic.args = { | ||
children: ( | ||
<TableContent | ||
data={[ | ||
{ column1: 'test1', column2: <span>TEST 1</span> }, | ||
{ | ||
column1: 'test2', | ||
column2: ( | ||
<div> | ||
TEST<strong>2</strong> | ||
</div> | ||
) | ||
} | ||
]} | ||
activePage={1} | ||
isLoading={false} | ||
setPage={() => console.log('setPage')} | ||
totalPages={2} | ||
empty={() => null} | ||
total={10} | ||
hasHeaders | ||
/> | ||
), | ||
tabsList: [ | ||
{ displayValue: 'Tab1', value: 'tab1' }, | ||
{ displayValue: 'Tab2', value: 'tab2' } | ||
], | ||
sortbyList: [], | ||
handleSortByChange: (value: string) => console.log('sortBy', value), | ||
sortBy: '' | ||
} |
Oops, something went wrong.
fd9c466
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
decentraland-ui – ./
decentraland-ui-git-master-decentraland1.vercel.app
decentraland-ui-decentraland1.vercel.app