-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added framer motion, page transitions and layout changes in prod list
- Loading branch information
1 parent
ee520d6
commit eec44e0
Showing
6 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import { motion } from 'framer-motion'; | ||
import type { AppProps } from 'next/app'; | ||
import DefaultHead from '~components/SEO/DefaultHead'; | ||
import { AuthProvider } from '~hooks/useAuth'; | ||
import GlobalStyles from '~styles/GlobalStyles'; | ||
|
||
function MyApp({ Component, pageProps }: AppProps) { | ||
function MyApp({ Component, pageProps, router }: AppProps) { | ||
return ( | ||
<> | ||
<motion.div | ||
key={router.route} | ||
initial={{ opacity: 0 }} | ||
animate={{ opacity: 1 }} | ||
transition={{ duration: 0.75 }} | ||
> | ||
<DefaultHead /> | ||
<AuthProvider> | ||
<GlobalStyles> | ||
<Component {...pageProps} /> | ||
</GlobalStyles> | ||
</AuthProvider> | ||
</> | ||
</motion.div> | ||
); | ||
} | ||
export default MyApp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eec44e0
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.
Successfully deployed to the following URLs: