mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
export table components
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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", () => (
|
||||||
|
|||||||
@@ -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(() => ({
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
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