export table components

This commit is contained in:
Eduard Heimbuch
2019-12-02 15:59:32 +01:00
parent ef74a54b91
commit 2e676a8f51
7 changed files with 9 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ export * from "./layout";
export * from "./modals"; export * from "./modals";
export * from "./navigation"; export * from "./navigation";
export * from "./repos"; export * from "./repos";
export * from "./table";
export { export {
File, File,

View File

@@ -1,5 +1,5 @@
import React, { FC, ReactNode } from "react"; import React, { FC, ReactNode } from "react";
import { ColumnProps } from "./types"; import { ColumnProps } from "./table";
type Props = ColumnProps & { type Props = ColumnProps & {
children: (row: any, columnIndex: number) => ReactNode; children: (row: any, columnIndex: number) => ReactNode;

View File

@@ -3,7 +3,7 @@ import { storiesOf } from "@storybook/react";
import Table from "./Table"; import Table from "./Table";
import Column from "./Column"; import Column from "./Column";
import TextColumn from "./TextColumn"; import TextColumn from "./TextColumn";
import { ColumnProps } from "./types"; import { ColumnProps } from "./table";
storiesOf("Table|Table", module) storiesOf("Table|Table", module)
.add("Default", () => ( .add("Default", () => (

View File

@@ -1,6 +1,6 @@
import React, { FC, useState } from "react"; import React, { FC, useState } from "react";
import styled from "styled-components"; import styled from "styled-components";
import { Comparator } from "./types"; import { Comparator } from "./table";
import SortIcon from "./SortIcon"; import SortIcon from "./SortIcon";
const StyledTable = styled.table.attrs(() => ({ const StyledTable = styled.table.attrs(() => ({

View File

@@ -1,5 +1,5 @@
import React, { FC } from "react"; import React, { FC } from "react";
import { ColumnProps } from "./types"; import { ColumnProps } from "./table";
type Props = ColumnProps & { type Props = ColumnProps & {
dataKey: string; dataKey: string;

View File

@@ -0,0 +1,4 @@
export { default as Table} from "./Table";
export { default as Column} from "./Column";
export { default as TextColumn} from "./TextColumn";
export { default as SortIcon} from "./SortIcon";