Skip to content

Commit

Permalink
chore: change inter as default font
Browse files Browse the repository at this point in the history
  • Loading branch information
elskow committed Dec 4, 2023
1 parent 6809dd7 commit 1325fbf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
6 changes: 5 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import { api } from '@/utils/api'
import '@/styles/globals.css'

const MyApp: AppType = ({ Component, pageProps }) => {
return <Component {...pageProps} />
return (
<main className={inter.className + ' antialiased'}>
<Component {...pageProps} />
</main>
)
}

export default api.withTRPC(MyApp)
7 changes: 2 additions & 5 deletions src/pages/dashboard/borrow/create/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import { Inter } from 'next/font/google'
import CreateBorrowForm from '@/ui/borrow/create-borrow-form'
import Navbar from '@/ui/navbar'

export const inter = Inter({ subsets: ['latin'] })

export default function Page() {
return (
<div className={`${inter.className} antialiased`}>
<>
<div className='w-full flex-none p-6'>
<Navbar />
</div>
<div className='text-center'>
<h1 className='text-2xl font-semibold'>Create Borrow</h1>
<CreateBorrowForm />
</div>
</div>
</>
)
}
7 changes: 3 additions & 4 deletions src/pages/dashboard/borrow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import Navbar from '@/ui/navbar'
import { Inter } from 'next/font/google'
export const inter = Inter({ subsets: ['latin'] })
import { PrismaClient } from '@prisma/client'
import { Create, Edit, Delete } from '@/ui/borrow/button'

const prisma = new PrismaClient()

import LabUsage from '@/ui/dashboard/lab-usage'

export default function Page() {
return (
<div className={`${inter.className} antialiased`}>
<>
<div className='w-full flex-none p-6'>
<Navbar />
</div>
Expand Down Expand Up @@ -63,6 +62,6 @@ export default function Page() {
</tbody>
</table>
</div>
</div>
</>
)
}
7 changes: 3 additions & 4 deletions src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import Navbar from '@/ui/navbar'
import { Inter } from 'next/font/google'
export const inter = Inter({ subsets: ['latin'] })
import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient()

import LabUsage from '@/ui/dashboard/lab-usage'

export default function Page() {
return (
<div className={`${inter.className} antialiased`}>
<>
<div className='w-full flex-none p-6'>
<Navbar />
</div>
<div className='text-center'>
<h1 className='text-2xl font-semibold'>Lab Usage</h1>
<LabUsage />
</div>
</div>
</>
)
}

0 comments on commit 1325fbf

Please sign in to comment.