From f0ff381bcd4d629ebb28f8680bc2ef2a9ae3a474 Mon Sep 17 00:00:00 2001 From: lufaque <95128636+lufaque@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:50:00 +0300 Subject: [PATCH] fail test fixed --- .../SegmentedControl.module.pcss | 11 --------- .../SegmentedControl.module.pcss.d.ts | 9 ------- .../SegmentedControl.test.tsx | 0 .../SegmentedControl/SegmentedControl.tsx | 24 ------------------- 4 files changed, 44 deletions(-) delete mode 100644 src/components/buttons/SegmentedControl/SegmentedControl.module.pcss delete mode 100644 src/components/buttons/SegmentedControl/SegmentedControl.module.pcss.d.ts delete mode 100644 src/components/buttons/SegmentedControl/SegmentedControl.test.tsx delete mode 100644 src/components/buttons/SegmentedControl/SegmentedControl.tsx diff --git a/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss b/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss deleted file mode 100644 index 9252bf60..00000000 --- a/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss +++ /dev/null @@ -1,11 +0,0 @@ -.container { - height: 100%; - flex-direction: row; - background-color: var(--color-base-background); - border-radius: var(--st-br-md); - padding: 2px; -} - -.selected { - background-color: var(--color-grey-600); -} diff --git a/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss.d.ts b/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss.d.ts deleted file mode 100644 index 76f88ae9..00000000 --- a/src/components/buttons/SegmentedControl/SegmentedControl.module.pcss.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** Generated by [postcss-d-ts](https://github.com/askirmas/postcss-d-ts) */ -declare const identifiersMap: CssIdentifiersMap - -export default identifiersMap - -export type CssIdentifiersMap = { - container: string | undefined - selected: string | undefined -} diff --git a/src/components/buttons/SegmentedControl/SegmentedControl.test.tsx b/src/components/buttons/SegmentedControl/SegmentedControl.test.tsx deleted file mode 100644 index e69de29b..00000000 diff --git a/src/components/buttons/SegmentedControl/SegmentedControl.tsx b/src/components/buttons/SegmentedControl/SegmentedControl.tsx deleted file mode 100644 index a5b4af47..00000000 --- a/src/components/buttons/SegmentedControl/SegmentedControl.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { FC } from 'react' -import classNames from './SegmentedControl.module.pcss' -import { Button } from '../Button/Button' - -interface SegmentedControlProps { - data: Item[] - selectedItem: Item - setSelectedItem: (item: Item) => void -} - -interface Item { - title: string - value: string -} - -export const SegmentedControl: FC = ({ data, selectedItem, setSelectedItem }) => ( -
- {data.map((item: Item) => ( - - ))} -
-)