diff options
| author | cubemaze <[email protected]> | 2023-05-17 16:24:13 +0800 |
|---|---|---|
| committer | Larvan2 <[email protected]> | 2023-05-17 22:46:03 +0800 |
| commit | aa73a4fb1ca704b7254d7f55e3a6ab5c209d12ee (patch) | |
| tree | 07651428bd7382ca5798c8591d1603b627958f83 /src/components/CollapsibleSectionHeader.tsx | |
| parent | b75c36f26d2fa7ffcdae610659662e4a7c59a2e8 (diff) | |
chore: proxy card style
Diffstat (limited to 'src/components/CollapsibleSectionHeader.tsx')
| -rw-r--r-- | src/components/CollapsibleSectionHeader.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/components/CollapsibleSectionHeader.tsx b/src/components/CollapsibleSectionHeader.tsx index 8b701e1..7a3cc6a 100644 --- a/src/components/CollapsibleSectionHeader.tsx +++ b/src/components/CollapsibleSectionHeader.tsx @@ -1,8 +1,5 @@ -import cx from 'clsx'; import * as React from 'react'; -import { ChevronDown } from 'react-feather'; -import Button from './Button'; import s from './CollapsibleSectionHeader.module.scss'; import { SectionNameType } from './shared/Basic'; @@ -14,7 +11,7 @@ type Props = { isOpen?: boolean; }; -export default function Header({ name, type, toggle, isOpen, qty }: Props) { +export default function Header({ name, type, toggle, qty }: Props) { const handleKeyDown = React.useCallback( (e: React.KeyboardEvent) => { e.preventDefault(); @@ -38,12 +35,6 @@ export default function Header({ name, type, toggle, isOpen, qty }: Props) { </div> {typeof qty === 'number' ? <span className={s.qty}>{qty}</span> : null} - - <Button kind="minimal" onClick={toggle} className={s.btn} title="Toggle collapsible section"> - <span className={cx(s.arrow, { [s.isOpen]: isOpen })}> - <ChevronDown size={20} /> - </span> - </Button> </div> ); } |
