From e8505d23798398c0291356e4bfa76d594a15c0d4 Mon Sep 17 00:00:00 2001 From: Rijk van Wel Date: Fri, 8 Mar 2024 21:40:11 +0100 Subject: [PATCH] refactored approach to single Transition wrapper --- app/layout.tsx | 9 ++- components/link.tsx | 23 ------- components/nav.tsx | 2 +- components/page-transitions/animate.tsx | 24 ------- components/page-transitions/context.tsx | 36 ---------- components/transitions.tsx | 87 +++++++++++++++++++++++++ 6 files changed, 92 insertions(+), 89 deletions(-) delete mode 100644 components/link.tsx delete mode 100644 components/page-transitions/animate.tsx delete mode 100644 components/page-transitions/context.tsx create mode 100644 components/transitions.tsx diff --git a/app/layout.tsx b/app/layout.tsx index 5d1e493..f550c96 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,8 +2,7 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import Nav from "@/components/nav"; -import Transitions from "@/components/page-transitions/context"; -import Animate from "@/components/page-transitions/animate"; +import Transitions, { Animate } from "@/components/transitions"; const inter = Inter({ subsets: ["latin"] }); @@ -19,10 +18,10 @@ export default function RootLayout({ }>) { return ( - - + +