mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
export table components
This commit is contained in:
@@ -63,6 +63,7 @@ export * from "./layout";
|
||||
export * from "./modals";
|
||||
export * from "./navigation";
|
||||
export * from "./repos";
|
||||
export * from "./table";
|
||||
|
||||
export {
|
||||
File,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { FC, ReactNode } from "react";
|
||||
import { ColumnProps } from "./types";
|
||||
import { ColumnProps } from "./table";
|
||||
|
||||
type Props = ColumnProps & {
|
||||
children: (row: any, columnIndex: number) => ReactNode;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { storiesOf } from "@storybook/react";
|
||||
import Table from "./Table";
|
||||
import Column from "./Column";
|
||||
import TextColumn from "./TextColumn";
|
||||
import { ColumnProps } from "./types";
|
||||
import { ColumnProps } from "./table";
|
||||
|
||||
storiesOf("Table|Table", module)
|
||||
.add("Default", () => (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { FC, useState } from "react";
|
||||
import styled from "styled-components";
|
||||
import { Comparator } from "./types";
|
||||
import { Comparator } from "./table";
|
||||
import SortIcon from "./SortIcon";
|
||||
|
||||
const StyledTable = styled.table.attrs(() => ({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { FC } from "react";
|
||||
import { ColumnProps } from "./types";
|
||||
import { ColumnProps } from "./table";
|
||||
|
||||
type Props = ColumnProps & {
|
||||
dataKey: string;
|
||||
|
||||
4
scm-ui/ui-components/src/table/index.ts
Normal file
4
scm-ui/ui-components/src/table/index.ts
Normal 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";
|
||||
Reference in New Issue
Block a user