test: remove unused code (#50560)

This commit is contained in:
afc163 2024-08-26 12:05:04 +08:00 committed by GitHub
parent 714a6e1679
commit acc10b4fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,15 +375,7 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
// Expand
const renderExpand = () => {
const { expandable, symbol } = ellipsisConfig;
if (!expandable) {
return null;
}
if (expanded && expandable !== 'collapsible') {
return null;
}
return (
return expandable ? (
<TransButton
key="expand"
className={`${prefixCls}-${expanded ? 'collapse' : 'expand'}`}
@ -392,7 +384,7 @@ const Base = React.forwardRef<HTMLElement, BlockProps>((props, ref) => {
>
{typeof symbol === 'function' ? symbol(expanded) : symbol}
</TransButton>
);
) : null;
};
// Edit