mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
Use next/font/local instead of next/font/google (#376)
This commit is contained in:
BIN
src/assets/fonts/Inter.ttf
Normal file
BIN
src/assets/fonts/Inter.ttf
Normal file
Binary file not shown.
@@ -6,7 +6,7 @@ import { cn } from "@utils/helpers";
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import relativeTime from "dayjs/plugin/relativeTime";
|
import relativeTime from "dayjs/plugin/relativeTime";
|
||||||
import { Viewport } from "next/dist/lib/metadata/types/extra-types";
|
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 React from "react";
|
||||||
import { Toaster } from "react-hot-toast";
|
import { Toaster } from "react-hot-toast";
|
||||||
import OIDCProvider from "@/auth/OIDCProvider";
|
import OIDCProvider from "@/auth/OIDCProvider";
|
||||||
@@ -16,7 +16,10 @@ import ErrorBoundaryProvider from "@/contexts/ErrorBoundary";
|
|||||||
import { GlobalThemeProvider } from "@/contexts/GlobalThemeProvider";
|
import { GlobalThemeProvider } from "@/contexts/GlobalThemeProvider";
|
||||||
import { NavigationEvents } from "@/contexts/NavigationEvents";
|
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
|
// Extend dayjs with relativeTime plugin
|
||||||
dayjs.extend(relativeTime);
|
dayjs.extend(relativeTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user