Skip to content

Commit

Permalink
정리
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkee committed Jan 15, 2024
1 parent 2afc86c commit 7b908d4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/api/products/route.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { supabase } from '../../supabase.js'; // supabase 설정 파일 불러오기
import { supabase } from '@/app/supabase.js'; // supabase 설정 파일 불러오기
export async function GET(req) {
// const sortParam = req.query.sort || "id";
const { data, error } = await supabase.from("products").select().order("id", { ascending: true });
Expand Down
5 changes: 3 additions & 2 deletions src/app/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client'
import Image from 'next/image'
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import React, { useEffect, useState } from 'react';
// import {NavLink , useLocation } from 'react-router-dom'; // Link , useLocation, useSearchParams,useParams, useSearchParams
Expand Down Expand Up @@ -33,11 +34,11 @@ export default function Nav() {
<header className={`header`}>
<div className="inr">
<div className="ldt">
<a href="/" className="logo">
<Link href="/" className="logo">
<span className="btlogo"></span>
<span className="txt">SUPAMARKET</span>
<Image className="next" src="/next.svg" alt="Next.js Logo" width={26} height={27} priority />
</a>
</Link>

</div>
<div className="rdt">
Expand Down
6 changes: 3 additions & 3 deletions src/app/layouts/DefaultLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { Inter } from 'next/font/google'

import Head from 'next/head';
import '../globals.css'
import '@/app/globals.css'
import '/public/common.css'
import '/public/fontawesome/css/all.css'
/* import 'https://site-assets.fontawesome.com/releases/v6.2.1/css/all.css'
import 'https://fonts.googleapis.com/earlyaccess/notosanskr.css' */
import Nav from '../components/Nav.jsx';
import Header from '../components/Header.jsx';
import Nav from '@/app/components/Nav.jsx';
import Header from '@/app/components/Header.jsx';
const inter = Inter({ subsets: ['latin'] })

export const metadata = {
Expand Down
4 changes: 2 additions & 2 deletions src/app/not-found.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { Link } from 'next/navigation'
import { useRouter } from 'next/navigation';
import Nav from './components/Nav.jsx';
import Header from './components/Header.jsx';
import Nav from '@/app/components/Nav.jsx';
import Header from '@/app/components/Header.jsx';

export default function NotFoundPage() {
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion src/app/user/[id]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Image from 'next/image';
import { useRouter } from 'next/navigation';
import Link from 'next/link';
import React, { useEffect, useRef, useState } from 'react';
import { supabase } from '@/app/supabase.js';
import ui from '@/app/ui.js';
import { supabase } from '../../supabase.js';

export const runtime = 'edge';

Expand Down
2 changes: 1 addition & 1 deletion src/app/user/login/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Image from 'next/image';
import { useRouter } from 'next/navigation';
import Link from 'next/link';
import React, { useEffect, useRef } from 'react';
import { supabase } from '@/app/supabase.js';
import ui from '@/app/ui.js';
import { supabase } from '../../supabase.js';

export default function Login() {
const router = useRouter();
Expand Down

0 comments on commit 7b908d4

Please sign in to comment.