forked from t3-oss/create-t3-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missing default font in pagesDir (t3-oss#1778)
- Loading branch information
1 parent
36befce
commit 01badfb
Showing
10 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-t3-app": patch | ||
--- | ||
|
||
fix: add missing default font in pagesDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
import { type AppType } from "next/dist/shared/lib/utils"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
}); | ||
|
||
const MyApp: AppType = ({ Component, pageProps }) => { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<main className={inter.className}> | ||
<Component {...pageProps} /> | ||
</main> | ||
); | ||
}; | ||
|
||
export default MyApp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { type Session } from "next-auth"; | ||
import { SessionProvider } from "next-auth/react"; | ||
import { type AppType } from "next/app"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import { api } from "~/utils/api"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-sans", | ||
}); | ||
|
||
const MyApp: AppType<{ session: Session | null }> = ({ | ||
Component, | ||
pageProps: { session, ...pageProps }, | ||
}) => { | ||
return ( | ||
<SessionProvider session={session}> | ||
<main className={`font-sans ${inter.variable}`}> | ||
<Component {...pageProps} /> | ||
</main> | ||
</SessionProvider> | ||
); | ||
}; | ||
|
||
export default api.withTRPC(MyApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { type Session } from "next-auth"; | ||
import { SessionProvider } from "next-auth/react"; | ||
import { type AppType } from "next/app"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-sans", | ||
}); | ||
|
||
const MyApp: AppType<{ session: Session | null }> = ({ | ||
Component, | ||
pageProps: { session, ...pageProps }, | ||
}) => { | ||
return ( | ||
<SessionProvider session={session}> | ||
<main className={`font-sans ${inter.variable}`}> | ||
<Component {...pageProps} /> | ||
</main> | ||
</SessionProvider> | ||
); | ||
}; | ||
|
||
export default MyApp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { type AppType } from "next/app"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import { api } from "~/utils/api"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-sans", | ||
}); | ||
const MyApp: AppType = ({ Component, pageProps }) => { | ||
return ( | ||
<main className={`font-sans ${inter.variable}`}> | ||
<Component {...pageProps} /> | ||
</main> | ||
); | ||
}; | ||
|
||
export default api.withTRPC(MyApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import { type AppType } from "next/app"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import { api } from "~/utils/api"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
}); | ||
|
||
const MyApp: AppType = ({ Component, pageProps }) => { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<main className={inter.className}> | ||
<Component {...pageProps} /> | ||
</main> | ||
); | ||
}; | ||
|
||
export default api.withTRPC(MyApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { type AppType } from "next/app"; | ||
import { Inter } from "next/font/google"; | ||
|
||
import "~/styles/globals.css"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-sans", | ||
}); | ||
|
||
const MyApp: AppType = ({ Component, pageProps }) => { | ||
return ( | ||
<main className={`font-sans ${inter.variable}`}> | ||
<Component {...pageProps} /> | ||
</main> | ||
); | ||
}; | ||
|
||
export default MyApp; |