Skip to content

Commit

Permalink
feat: fix linting and export
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Nov 4, 2021
1 parent 1b7c1f3 commit 64387c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/_playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import LineUpLite, {
ActionLineUpProps,
asTextColumn,
asNumberBoxPlotColumn,
asDivergingNumberColumn,
asLineChartColumn,
featureFilterColumns,
featureFlexLayout,
featureRowRank,
Expand All @@ -22,7 +24,7 @@ import LineUpLite, {
LineUpLitePanel,
LineUpLiteStateContextProvider,
} from '@lineup-lite/table';
import { asLineChartColumn } from '@lineup-lite/hooks';
import { defaultDivergingColorScale, defaultDivergingDarkColorScale } from '@lineup-lite/components';
import type { TextGroupByOptions } from '@lineup-lite/hooks';
import '@lineup-lite/table/src/style.css';
import React, { useCallback, useMemo, useState } from 'react';
Expand Down Expand Up @@ -170,6 +172,11 @@ function Table({ isDarkTheme }: { isDarkTheme: boolean }) {
const columns: LineUpLiteColumn<Row>[] = useMemo(
() => [
asTextColumn<Row>('name'),
asDivergingNumberColumn<Row>('test', {
color: isDarkTheme ? defaultDivergingDarkColorScale : defaultDivergingColorScale,
min: -1,
max: 1,
}),
{ ...asNumberBoxPlotColumn<Row>('runningTimes'), id: 'r2' },
asLineChartColumn<Row>('runningTimes'),
],
Expand Down
1 change: 1 addition & 0 deletions packages/table/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export {
deriveColumn,
deriveColumns,
LineUpLiteColumn,
asLineChartColumn,
asColumn,
} from '@lineup-lite/hooks';

Expand Down

0 comments on commit 64387c9

Please sign in to comment.