diff --git a/docs/UX Patterns/Table/Table.stories.tsx b/docs/UX Patterns/Table/Table.stories.tsx index c774dd819..7e8a2febc 100644 --- a/docs/UX Patterns/Table/Table.stories.tsx +++ b/docs/UX Patterns/Table/Table.stories.tsx @@ -23,8 +23,6 @@ import { tableColumns, tableData, type TableDataType } from './TableStoryUtils' import { SelectWithRangePicker } from 'docs/Candidate Components/Directory/Date Range Filter/SelectWithRangePicker' import { useState } from 'react' import { ColorTextDescription } from 'src/styles/style' -import MinusSquareOutlined from '@ant-design/icons/MinusSquareOutlined' -import PlusSquareOutlined from '@ant-design/icons/PlusSquareOutlined' const meta: Meta = { title: 'UX Patterns/Table/Table', @@ -110,11 +108,7 @@ const CollapsibleSection = ({ ...item }: ICollapsibleFormSectionProps): React.JS }, }, }}> - (isActive ? : )} - items={[{ ...item, key: 'item' }]} - /> + ) } diff --git a/src/components/data-display/Collapse/Collapse.stories.tsx b/src/components/data-display/Collapse/Collapse.stories.tsx index d6319a258..4643a9583 100644 --- a/src/components/data-display/Collapse/Collapse.stories.tsx +++ b/src/components/data-display/Collapse/Collapse.stories.tsx @@ -1,7 +1,7 @@ -import { type Meta, type StoryObj } from '@storybook/react' +import type { Meta, StoryObj } from '@storybook/react' import { Collapse } from 'src/components/data-display/Collapse/Collapse' import { ExampleStory } from 'src/utils/ExampleStory' -import { type ICollapseProps } from 'src/components/data-display/Collapse/Collapse' +import type { ICollapseProps } from 'src/components/data-display/Collapse/Collapse' import { Divider, Icon, Space } from 'src/components' import { theme } from 'antd' import { Select } from 'src/components' @@ -42,7 +42,6 @@ const meta: Meta = { collapsible: undefined, defaultActiveKey: undefined, destroyInactivePanel: false, - expandIcon: undefined, expandIconPosition: undefined, ghost: false, size: 'middle', diff --git a/src/components/data-display/Collapse/Collapse.tsx b/src/components/data-display/Collapse/Collapse.tsx index a59fd6793..9b79e85a7 100644 --- a/src/components/data-display/Collapse/Collapse.tsx +++ b/src/components/data-display/Collapse/Collapse.tsx @@ -1,13 +1,18 @@ import { Collapse as AntCollapse } from 'antd' import type { CollapseProps as AntCollapseProps } from 'antd' -import { ConfigProvider } from 'src/components' +import { ConfigProvider, Icon } from 'src/components' export interface ICollapseProps extends AntCollapseProps {} export const Collapse = (props: ICollapseProps) => { return ( - + + isActive ? : + } + {...props} + /> ) }