Skip to content

Commit

Permalink
toast
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Nov 18, 2024
1 parent 4f1414f commit 0bc12e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
26 changes: 15 additions & 11 deletions templates/plate-playground-template/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import type { Metadata } from 'next';

import localFont from 'next/font/local';
import { Toaster } from 'sonner';

import './globals.css';

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
src: './fonts/GeistVF.woff',
variable: '--font-geist-sans',
weight: '100 900',
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
src: './fonts/GeistMonoVF.woff',
variable: '--font-geist-mono',
weight: '100 900',
});

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

export default function RootLayout({
Expand All @@ -29,6 +32,7 @@ export default function RootLayout({
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<Toaster />
</body>
</html>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function SettingsDialog() {
<DialogDescription>
Enter your{' '}
<Link
className="inline-flex items-center font-medium text-primary hover:underline"
className="text-primary inline-flex items-center font-medium hover:underline"
href="https://platform.openai.com/api-keys"
rel="noreferrer"
target="_blank"
Expand Down Expand Up @@ -306,7 +306,7 @@ export function SettingsDialog() {
Save
</Button>
</form>
<p className="mt-4 text-sm text-muted-foreground">
<p className="text-muted-foreground mt-4 text-sm">
Not stored anywhere. Used only for current session requests.
</p>
</DialogContent>
Expand Down

0 comments on commit 0bc12e0

Please sign in to comment.