Skip to content

Commit

Permalink
chore: resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nastyastavitskaya committed Dec 20, 2024
2 parents 3985d22 + ad063f5 commit a7f844e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 1 addition & 7 deletions docs/UX Patterns/Table/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof Table> = {
title: 'UX Patterns/Table/Table',
Expand Down Expand Up @@ -110,11 +108,7 @@ const CollapsibleSection = ({ ...item }: ICollapsibleFormSectionProps): React.JS
},
},
}}>
<Collapse
ghost
expandIcon={({ isActive }): React.JSX.Element => (isActive ? <MinusSquareOutlined /> : <PlusSquareOutlined />)}
items={[{ ...item, key: 'item' }]}
/>
<Collapse ghost items={[{ ...item, key: 'item' }]} />
</ConfigProvider>
)
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/data-display/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<ConfigProvider>
<AntCollapse {...props} />
<AntCollapse
expandIcon={({ isActive }): React.JSX.Element =>
isActive ? <Icon name="dropdownOpen" size="sm" /> : <Icon name="next" size="sm" />
}
{...props}
/>
</ConfigProvider>
)
}
Expand Down

0 comments on commit a7f844e

Please sign in to comment.