Skip to content

Commit

Permalink
MotionElement update
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Aug 15, 2024
1 parent 4db82c2 commit 0abc7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Atomic/MotionElement/MotionElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from 'react'
import { motion } from 'framer-motion'

const MotionElement: FC<any> = (props) => {
const noAnimations = process.env.REACT_APP_NO_ANIMATIONS === 'true'
const noAnimations = process.env.REACT_APP_NO_ANIMATIONS === 'true' || process.env.REACT_APP_MOCK_API === 'true'
const { divStyle, children, noAnimations: noAnimationsProp, ...rest } = props

return noAnimations || noAnimationsProp ? (
Expand Down

0 comments on commit 0abc7d5

Please sign in to comment.