Skip to content

Commit

Permalink
feat: add sorting to Committers table
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-stoyanov committed Feb 24, 2021
1 parent caf3dd7 commit 16c8753
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ui/blocks/src/ComponentCommits/ComponentCommits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,17 @@ export const ComponentCommits: FC<ComponentCommitsProps> = ({

return (
<BlockContainer {...props}>
<Table<Commit> data={component.fileInfo.commits} columns={columns} />
<Table<Commit>
sorting={true}
data={component.fileInfo.commits}
columns={columns}
sortBy={[
{
id: 'authorDate',
desc: true,
},
]}
/>
</BlockContainer>
);
};

0 comments on commit 16c8753

Please sign in to comment.