()
| 756 | ) |
| 757 | |
| 758 | export const WithRowActions = () => ( |
| 759 | <Table.Container> |
| 760 | <Table.Title as="h2" id="repositories"> |
| 761 | Repositories |
| 762 | </Table.Title> |
| 763 | <Table.Subtitle as="p" id="repositories-subtitle"> |
| 764 | A subtitle could appear here to give extra context to the data. |
| 765 | </Table.Subtitle> |
| 766 | <DataTable |
| 767 | aria-labelledby="repositories" |
| 768 | aria-describedby="repositories-subtitle" |
| 769 | data={data} |
| 770 | columns={[ |
| 771 | { |
| 772 | header: 'Repository', |
| 773 | field: 'name', |
| 774 | rowHeader: true, |
| 775 | }, |
| 776 | { |
| 777 | header: 'Type', |
| 778 | field: 'type', |
| 779 | renderCell: row => { |
| 780 | return <Label>{uppercase(row.type)}</Label> |
| 781 | }, |
| 782 | }, |
| 783 | { |
| 784 | header: 'Updated', |
| 785 | field: 'updatedAt', |
| 786 | renderCell: row => { |
| 787 | return <RelativeTime date={new Date(row.updatedAt)} /> |
| 788 | }, |
| 789 | }, |
| 790 | { |
| 791 | header: 'Dependabot', |
| 792 | field: 'securityFeatures.dependabot', |
| 793 | renderCell: row => { |
| 794 | return row.securityFeatures.dependabot.length > 0 ? ( |
| 795 | <LabelGroup> |
| 796 | {row.securityFeatures.dependabot.map(feature => { |
| 797 | return <Label key={feature}>{uppercase(feature)}</Label> |
| 798 | })} |
| 799 | </LabelGroup> |
| 800 | ) : null |
| 801 | }, |
| 802 | }, |
| 803 | { |
| 804 | header: 'Code scanning', |
| 805 | field: 'securityFeatures.codeScanning', |
| 806 | renderCell: row => { |
| 807 | return row.securityFeatures.codeScanning.length > 0 ? ( |
| 808 | <LabelGroup> |
| 809 | {row.securityFeatures.codeScanning.map(feature => { |
| 810 | return <Label key={feature}>{uppercase(feature)}</Label> |
| 811 | })} |
| 812 | </LabelGroup> |
| 813 | ) : null |
| 814 | }, |
| 815 | }, |
nothing calls this directly
no test coverage detected