From 6272ea33794e8f28e7f578b19486ea30c3f4a750 Mon Sep 17 00:00:00 2001 From: chelentos Date: Mon, 22 Jul 2024 09:12:11 +0300 Subject: [PATCH] fix: review fix --- src/components/__stories__/StickyHeaderDemo.scss | 2 +- src/components/__stories__/StickyHeaderDemo.tsx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/__stories__/StickyHeaderDemo.scss b/src/components/__stories__/StickyHeaderDemo.scss index 91a8eff..c931a8d 100644 --- a/src/components/__stories__/StickyHeaderDemo.scss +++ b/src/components/__stories__/StickyHeaderDemo.scss @@ -16,7 +16,7 @@ } th { - background: var(--g-color-base-generic-medium); + background: var(--g-color-line-generic-solid); border-block-end: 0; diff --git a/src/components/__stories__/StickyHeaderDemo.tsx b/src/components/__stories__/StickyHeaderDemo.tsx index f87bccb..23c5866 100644 --- a/src/components/__stories__/StickyHeaderDemo.tsx +++ b/src/components/__stories__/StickyHeaderDemo.tsx @@ -5,14 +5,11 @@ import {Table} from '../Table'; import {cnStickyHeaderDemo} from './StickyHeaderDemo.classname'; import {columns} from './constants/columns'; -import {data as originData} from './constants/data'; +import {generateData} from './utils'; import './StickyHeaderDemo.scss'; -const data = Array(5) - .fill(originData) - .flat() - .map((val, index) => ({...val, id: `${val.id}-${index}`})); +const data = generateData(30); export const StickyHeaderDemo = () => { const table = useTable({