Skip to content

Commit 30c841f

Browse files
authored
feat: wrapClassName => classNames.wrapper (#285)
1 parent 486e0f1 commit 30c841f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@babel/runtime": "^7.11.2",
4646
"@rc-component/portal": "^1.0.2",
4747
"classnames": "^2.2.6",
48-
"rc-dialog": "~9.3.0",
48+
"rc-dialog": "~9.3.4",
4949
"rc-motion": "^2.6.2",
5050
"rc-util": "^5.34.1"
5151
},

src/Preview.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ const Preview: React.FC<PreviewProps> = props => {
370370
prefixCls={prefixCls}
371371
onClose={onClose}
372372
visible={visible}
373-
wrapClassName={wrapClassName}
373+
classNames={{
374+
wrapper: wrapClassName,
375+
}}
374376
rootClassName={rootClassName}
375377
getContainer={getContainer}
376378
{...restProps}

0 commit comments

Comments
 (0)