Skip to content

Commit

Permalink
Use next/font/local instead of next/font/google (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
heisbrot authored Apr 19, 2024
1 parent 96b939e commit 3f943bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file added src/assets/fonts/Inter.ttf
Binary file not shown.
7 changes: 5 additions & 2 deletions src/layouts/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cn } from "@utils/helpers";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { Viewport } from "next/dist/lib/metadata/types/extra-types";
import { Inter } from "next/font/google";
import localFont from "next/font/local";
import React from "react";
import { Toaster } from "react-hot-toast";
import OIDCProvider from "@/auth/OIDCProvider";
Expand All @@ -16,7 +16,10 @@ import ErrorBoundaryProvider from "@/contexts/ErrorBoundary";
import { GlobalThemeProvider } from "@/contexts/GlobalThemeProvider";
import { NavigationEvents } from "@/contexts/NavigationEvents";

const inter = Inter({ subsets: ["latin"] });
const inter = localFont({
src: "../assets/fonts/Inter.ttf",
display: "swap",
});

// Extend dayjs with relativeTime plugin
dayjs.extend(relativeTime);
Expand Down

0 comments on commit 3f943bb

Please sign in to comment.