diff --git a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx index 18deea19b..491c50659 100644 --- a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx +++ b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx @@ -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[]; diff --git a/src/FilterLists.Web.V2/src/modules/allListsTable/columns.ts b/src/FilterLists.Web.V2/src/modules/allListsTable/columns.ts new file mode 100644 index 000000000..b53ec27dc --- /dev/null +++ b/src/FilterLists.Web.V2/src/modules/allListsTable/columns.ts @@ -0,0 +1,9 @@ +import { ColumnProps } from "antd/lib/table"; +import { List } from './List'; + +export const columns: ColumnProps[] = [ + { + title: 'Name', + dataIndex: 'name', + } +];