Skip to content

Commit

Permalink
Start updating deps
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Nov 26, 2023
1 parent beeaf86 commit f261a0e
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
],
"plugins": ["tailwindcss"],
"rules": {
"tailwindcss/no-custom-classname": "off"
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "off"
},
"settings": {
"tailwindcss": {
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ yarn-error.log*
# turbo
.turbo

.contentlayer
.env
.vercel
.vscode
.vscode
.env*.local
10 changes: 5 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { Metadata } from 'next'

import { Toaster } from 'react-hot-toast'
import { GeistSans } from 'geist/font/sans'
import { GeistMono } from 'geist/font/mono'

import '@/app/globals.css'
import { fontMono, fontSans } from '@/lib/fonts'
import { cn } from '@/lib/utils'
import { TailwindIndicator } from '@/components/tailwind-indicator'
import { Providers } from '@/components/providers'
import { Header } from '@/components/header'

export const metadata: Metadata = {
metadataBase: new URL('https://chat.vercel.ai/'),
title: {
default: 'Next.js AI Chatbot',
template: `%s - Next.js AI Chatbot`
Expand All @@ -33,18 +35,16 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en" suppressHydrationWarning>
<head />
<body
className={cn(
'font-sans antialiased',
fontSans.variable,
fontMono.variable
GeistSans.variable,
GeistMono.variable
)}
>
<Toaster />
<Providers attribute="class" defaultTheme="system" enableSystem>
<div className="flex flex-col min-h-screen">
{/* @ts-ignore */}
<Header />
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
</div>
Expand Down
1 change: 0 additions & 1 deletion components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { SidebarFooter } from '@/components/sidebar-footer'
import { ThemeToggle } from '@/components/theme-toggle'
import { ClearHistory } from '@/components/clear-history'
import { UserMenu } from '@/components/user-menu'
import { LoginButton } from '@/components/login-button'

export async function Header() {
const session = await auth()
Expand Down
3 changes: 0 additions & 3 deletions components/toaster.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion components/user-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export function UserMenu({ user }: UserMenuProps) {
className="w-6 h-6 transition-opacity duration-300 rounded-full select-none ring-1 ring-zinc-100/10 hover:opacity-80"
src={user?.image ? `${user.image}&s=60` : ''}
alt={user.name ?? 'Avatar'}
height={48} width={48}
height={48}
width={48}
/>
) : (
<div className="flex items-center justify-center text-xs font-medium uppercase rounded-full select-none h-7 w-7 shrink-0 bg-muted/50 text-muted-foreground">
Expand Down
11 changes: 0 additions & 11 deletions lib/fonts.ts

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"class-variance-authority": "^0.4.0",
"clsx": "^1.2.1",
"focus-trap-react": "^10.1.1",
"geist": "^1.1.0",
"nanoid": "^4.0.2",
"next": "13.4.7-canary.1",
"next-auth": "0.0.0-manual.83c4ebd1",
Expand Down
17 changes: 14 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { fontFamily } = require('tailwindcss/defaultTheme')

/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
Expand All @@ -14,7 +12,8 @@ module.exports = {
},
extend: {
fontFamily: {
sans: ['var(--font-sans)', ...fontFamily.sans]
sans: ['var(--font-geist-sans)'],
mono: ['var(--font-geist-mono)']
},
colors: {
border: 'hsl(var(--border))',
Expand Down

0 comments on commit f261a0e

Please sign in to comment.