Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props: TableProps) {
super(props);
this.state = {
columns: [
{ title: 'Header cell', cellTransforms: [headerCol('selectable')] },
'Branches',
{ title: 'Pull requests' },
'Workspaces',
'Last Commit'
],
rows: [['one', 'two', 'three', 'four', 'five']]
};
}
constructor(props: TableProps) {
super(props);
this.state = {
columns: [
{ title: 'Repositories', cellTransforms: [headerCol()] },
'Branches',
{ title: 'Pull requests' },
'Workspaces',
'Last Commit'
],
rows: [
{
cells: ['one', 'two', 'a', 'four', 'five']
},
{
cells: ['a', 'two', 'k', 'four', 'five']
},
{
cells: ['p', 'two', 'b', 'four', 'five'],
disableActions: true
}
constructor(props: TableProps) {
super(props);
this.state = {
columns: [
{ title: 'Repositories', cellTransforms: [headerCol()] },
'Branches',
{ title: 'Pull requests' },
'Workspaces',
'Last Commit'
],
rows: [
{
cells: ['one', 'two', 'a', 'four', 'five'],
selected: false
},
{
cells: ['a', 'two', 'k', 'four', 'five'],
selected: false
},
{
cells: ['p', 'two', 'b', 'four', 'five'],
constructor(props) {
super(props);
this.state = {
columns: [
{ title: 'Header cell', cellTransforms: [headerCol('selectable')] },
'Branches',
{ title: 'Pull requests' },
'Workspaces',
'Last Commit'
],
rows: [['one', 'two', 'three', 'four', 'five']]
};
}
constructor(props: TableProps) {
super(props);
this.state = {
columns: [
{ title: 'Repositories', cellTransforms: [headerCol()] },
'Branches',
{ title: 'Pull requests' },
'Workspaces',
'Last Commit'
],
rows: [
{
cells: ['one', 'two', 'a', 'four', 'five'],
type: 'green'
},
{
cells: ['a', 'two', 'k', 'four', 'five']
},
{
cells: ['p', 'two', 'b', 'four', 'five'],
type: 'blue'