Skip to content

Commit b542467

Browse files
committed
chore: rename var
1 parent 2f7fc2b commit b542467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/UniqueProvider/UniqueBody.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const UniqueBody = (props: UniqueBodyProps) => {
3838
uniqueBgStyle,
3939
} = props;
4040

41-
const floatBgCls = `${prefixCls}-unique-body`;
41+
const bodyCls = `${prefixCls}-unique-body`;
4242

4343
const [motionVisible, setMotionVisible] = React.useState(false);
4444

@@ -68,16 +68,16 @@ const UniqueBody = (props: UniqueBodyProps) => {
6868
motionEnter
6969
motionLeave
7070
removeOnLeave={false}
71-
leavedClassName={`${floatBgCls}-hidden`}
71+
leavedClassName={`${bodyCls}-hidden`}
7272
{...motion}
7373
visible={open}
7474
onVisibleChanged={(nextVisible) => {
7575
setMotionVisible(nextVisible);
7676
}}
7777
>
7878
{({ className: motionClassName, style: motionStyle }) => {
79-
const cls = classNames(floatBgCls, motionClassName, uniqueBgClassName, {
80-
[`${floatBgCls}-visible`]: motionVisible,
79+
const cls = classNames(bodyCls, motionClassName, uniqueBgClassName, {
80+
[`${bodyCls}-visible`]: motionVisible,
8181
});
8282

8383
return (

0 commit comments

Comments
 (0)