Created
February 13, 2020 01:52
-
-
Save alexandreservian/1d5f3e60530a9cd052f9c6eeafe113a4 to your computer and use it in GitHub Desktop.
Tabela final
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
const App = () => { | |
return ( | |
<Table | |
data={data} | |
loading={loading} | |
rowKey="id" | |
headerHeight={45} | |
rowHeight={70} | |
sortBy={sortBy} | |
onColumnSort={handleOnColumnSort(data, setData, setSortBy)} | |
onClickRow={handleOnClickRow(setSelectedRow)} | |
onDoubleClickRow={handleOnDoubleClickRow} | |
rowClassName={addClassNameRow(selectedRow)} | |
> | |
{columnDefinition.map(({dataKey, ...restProps}) => ( | |
<Column key={dataKey} dataKey={dataKey} {...restProps} /> | |
))} | |
</Table> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment