rename prop if a component requires authentication

This commit is contained in:
Thomas Ruoff
2022-04-02 00:33:52 +02:00
parent 56478632e5
commit ba00c1a179
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ export default function MyApp({
return (
<div className="flex flex-col min-h-screen">
<SessionProvider session={session}>
{Component.auth ? (
{Component.authenticationRequired ? (
<Auth>
<Component {...pageProps} />
</Auth>