Skip to content

Commit 580f0f6

Browse files
committed
refactor: replace MotionDiv with motion.div in Banner and Login components
1 parent 3785c1c commit 580f0f6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/common/Banner/Banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
Icon,
2626
InfoBlockVariant,
2727
InstallationType,
28-
MotionDiv,
28+
motion,
2929
noop,
3030
setActionWithExpiry,
3131
useMainContext,
@@ -178,7 +178,7 @@ export const Banner = () => {
178178
return (
179179
<AnimatePresence custom={!!bannerVariant}>
180180
{bannerVariant && config && (
181-
<MotionDiv
181+
<motion.div
182182
layout
183183
key={bannerVariant}
184184
variants={bannerVariants}
@@ -217,7 +217,7 @@ export const Banner = () => {
217217
showAriaLabelInTippy={false}
218218
/>
219219
)}
220-
</MotionDiv>
220+
</motion.div>
221221
)}
222222
</AnimatePresence>
223223
)

src/components/login/Login.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
Host,
2929
Icon,
3030
LoginBanner,
31-
MotionDiv,
31+
motion,
3232
SSOProviderIcon,
3333
ToastManager,
3434
ToastVariantType,
@@ -195,7 +195,7 @@ const Login = () => {
195195
<div className="flexbox-col">
196196
{renderDevtronLogo()}
197197
<AnimatePresence>
198-
<MotionDiv
198+
<motion.div
199199
key={location.pathname}
200200
variants={LOGIN_CARD_ANIMATION_VARIANTS}
201201
initial="initial"
@@ -205,7 +205,7 @@ const Login = () => {
205205
className="dc__overflow-hidden"
206206
>
207207
{renderLoginContent()}
208-
</MotionDiv>
208+
</motion.div>
209209
</AnimatePresence>
210210
</div>
211211
{getTermsAndConditions && getTermsAndConditions()}

0 commit comments

Comments
 (0)