diff --git a/components/collapse/Collapse.tsx b/components/collapse/Collapse.tsx
index 9ad5c24594..141391504a 100644
--- a/components/collapse/Collapse.tsx
+++ b/components/collapse/Collapse.tsx
@@ -62,11 +62,13 @@ const Collapse: CollapseInterface = props => {
const renderExpandIcon = (panelProps: PanelProps = {}) => {
const { expandIcon } = props;
- const icon = (expandIcon ? (
- expandIcon(panelProps)
- ) : (
-
- )) as React.ReactNode;
+ const icon = (
+ expandIcon ? (
+ expandIcon(panelProps)
+ ) : (
+
+ )
+ ) as React.ReactNode;
return cloneElement(icon, () => ({
className: classNames((icon as any).props.className, `${prefixCls}-arrow`),
@@ -110,7 +112,6 @@ const Collapse: CollapseInterface = props => {
{
}
const Modal: ModalInterface = props => {
- const { getPopupContainer: getContextPopupContainer, getPrefixCls, direction } = React.useContext(
- ConfigContext,
- );
+ const {
+ getPopupContainer: getContextPopupContainer,
+ getPrefixCls,
+ direction,
+ } = React.useContext(ConfigContext);
const handleCancel = (e: React.MouseEvent) => {
const { onCancel } = props;
@@ -203,7 +205,9 @@ const Modal: ModalInterface = props => {
return (