extract column defs to new file

This commit is contained in:
Collin M. Barrett 2019-08-04 17:59:22 -05:00
parent 44061745e9
commit d9a2988787
2 changed files with 10 additions and 7 deletions

View file

@ -1,13 +1,7 @@
import { Table } from 'antd';
import * as React from "react";
import { List } from './List';
const columns = [
{
title: 'Name',
dataIndex: 'name',
}
];
import { columns } from './columns';
interface State {
data: List[];

View file

@ -0,0 +1,9 @@
import { ColumnProps } from "antd/lib/table";
import { List } from './List';
export const columns: ColumnProps<List>[] = [
{
title: 'Name',
dataIndex: 'name',
}
];