mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
missing }
This commit is contained in:
1 parent
2ad6989b1b
commit
d5430776b5
1 file changed
+14
-13
@@ -33,23 +33,24 @@ const LogsLayout = ({ title, children }: PropsWithChildren<LogsLayoutProps>) =>
|
||||
}, [router, setLastLogsPage])
|
||||
|
||||
if (!canUseLogsExplorer) {
|
||||
if (isLoading) {
|
||||
return <ProjectLayout isLoading></ProjectLayout>
|
||||
}
|
||||
if (isLoading) {
|
||||
return <ProjectLayout isLoading></ProjectLayout>
|
||||
}
|
||||
|
||||
if (!isLoading && !canUseLogsExplorer) {
|
||||
return (
|
||||
<ProjectLayout>
|
||||
<NoPermission isFullPage resourceText="access your project's logs" />
|
||||
</ProjectLayout>
|
||||
)
|
||||
}
|
||||
|
||||
if (!isLoading && !canUseLogsExplorer) {
|
||||
return (
|
||||
<ProjectLayout>
|
||||
<NoPermission isFullPage resourceText="access your project's logs" />
|
||||
<ProjectLayout title={title} product="Logs & Analytics" productMenu={<LogsSidebarMenuV2 />}>
|
||||
{children}
|
||||
</ProjectLayout>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<ProjectLayout title={title} product="Logs & Analytics" productMenu={<LogsSidebarMenuV2 />}>
|
||||
{children}
|
||||
</ProjectLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default withAuth(LogsLayout)
|
||||
export default withAuth(LogsLayout)
|
||||
Reference in new issue
Block a user