-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: replace framer-motion with motion/react and update imports #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| import { styled } from "styled-components"; | ||||||
| import { motion } from "framer-motion"; | ||||||
| import { Color } from "../../styles/colors"; | ||||||
| import { BIG_BREAKPOINT, BIGGER_BREAKPOINT } from "../../constants/BreakPoints"; | ||||||
| import { motion } from "motion/react"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using a direct import from the
Suggested change
|
||||||
| import { Color } from "@styles/colors"; | ||||||
| import { BIG_BREAKPOINT, BIGGER_BREAKPOINT } from "@constants/BreakPoints"; | ||||||
|
|
||||||
| export const StyledHomeImage = styled.div` | ||||||
| padding: 70px 0 40px; | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| import { FC } from "react"; | ||
| import { Link } from "react-router"; | ||
| import LessThanBlueWhiteIcon from "../../assets/images/LessThanBlueIcon.svg"; | ||
| import { motion } from "framer-motion"; | ||
| import LessThanBlueWhiteIcon from "@assets/images/LessThanBlueIcon.svg"; | ||
| import { motion } from "motion/react"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider using a direct import from the import { motion } from "motion"; |
||
| import { styled } from "styled-components"; | ||
| import SpeakerSwiper from "./SpeakerSwiper"; | ||
| import { Color } from "@styles/colors"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using a direct import from the
motionpackage instead ofmotion/reactif the component is intended to be used outside of React components. This might provide more flexibility and avoid unnecessary dependencies if the core animation logic is needed elsewhere.