From 4e22d1138eb801d34d5fc1546f6984c3109ebebf Mon Sep 17 00:00:00 2001 From: Steve Laing Date: Wed, 21 Feb 2024 13:20:49 +0000 Subject: [PATCH] Fix imports and metadata --- app/layout.tsx | 8 ++++---- app/page.tsx | 2 +- app/profiles/create/page.tsx | 4 ++-- app/profiles/page.tsx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index badec46..7759301 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,13 +1,13 @@ -import './globals.css' +import '@/app/globals.css' import type { Metadata } from 'next' import { Inter } from 'next/font/google' -import Header from './components/Header' +import Header from '@/app/components/Header' const inter = Inter({ subsets: ['latin'] }) export const metadata: Metadata = { - title: 'Create Next App', - description: 'Generated by create next app', + title: 'Suspense', + description: 'Record your suspension settings', } export default function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index 209125c..e6dfef2 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,4 @@ -import Profiles from './profiles/page' +import Profiles from '@/app/profiles/page' export default function Home() { return ( diff --git a/app/profiles/create/page.tsx b/app/profiles/create/page.tsx index d73edaa..7893c8f 100644 --- a/app/profiles/create/page.tsx +++ b/app/profiles/create/page.tsx @@ -1,8 +1,8 @@ "use client" import React, {useState } from 'react' import { useRouter } from 'next/navigation' -import LabelAndTextField from '../../components/form/LabelAndTextField' -import Submit from '../../components/form/Submit' +import LabelAndTextField from '@/app/components/form/LabelAndTextField' +import Submit from '@/app/components/form/Submit' export default function ProfileCreate() { const router = useRouter() diff --git a/app/profiles/page.tsx b/app/profiles/page.tsx index d30f257..8cdb752 100644 --- a/app/profiles/page.tsx +++ b/app/profiles/page.tsx @@ -1,9 +1,9 @@ "use client"; import React,{useEffect, useState} from "react"; import useSWR from "swr"; -import { fetcher } from "../lib"; -import Profile from "../components/Profile"; -import { ProfileModel } from "../types"; +import { fetcher } from "@/app/lib"; +import Profile from "@/app/components/Profile"; +import { ProfileModel } from "@/app/types"; import Link from "next/link"; export default function Profiles() {