mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
extract column defs to new file
This commit is contained in:
parent
44061745e9
commit
d9a2988787
2 changed files with 10 additions and 7 deletions
|
|
@ -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[];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
import { ColumnProps } from "antd/lib/table";
|
||||
import { List } from './List';
|
||||
|
||||
export const columns: ColumnProps<List>[] = [
|
||||
{
|
||||
title: 'Name',
|
||||
dataIndex: 'name',
|
||||
}
|
||||
];
|
||||
Loading…
Reference in a new issue