Skip to content

Commit

Permalink
πŸ› fix: λΉŒλ“œ μ—λŸ¬ ν•΄κ²°, Layout μ—μ„œλŠ” export X
Browse files Browse the repository at this point in the history
  • Loading branch information
froggy1014 committed Jul 31, 2024
1 parent 4394bd2 commit fa0a3a7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Preview } from "@storybook/react";
import React from "react";

import { Pretendard } from "../src/app/layout";
import { Pretendard } from "../src/app/fonts/index";
import "../src/styles/globals.css";
import "../src/styles/theme.css";
import { cn } from "../src/utils/cn";
Expand Down
7 changes: 7 additions & 0 deletions src/app/fonts/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import localFont from "next/font/local";

export const Pretendard = localFont({
src: "./PretendardVariable.woff2",
display: "swap",
variable: "--font-pretendard",
});
9 changes: 2 additions & 7 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,19 @@ import "../styles/reset.css";
import "../styles/theme.css";

import type { Metadata } from "next";
import localFont from "next/font/local";

import MobileLayout from "@/layout/Mobile/MobileLayout";
import RadixThemeProvider from "@/lib/RadixThemeProvider";
import ReactQueryProvider from "@/lib/ReactQueryProvider";
import { cn } from "@/utils/cn";

import { Pretendard } from "./fonts";

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};

export const Pretendard = localFont({
src: "./fonts/PretendardVariable.woff2",
display: "swap",
variable: "--font-pretendard",
});

export default function RootLayout({
children,
}: Readonly<{
Expand Down

0 comments on commit fa0a3a7

Please sign in to comment.