Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AndlerRL committed Aug 17, 2024
1 parent 23f8708 commit c098eeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/masterbots.ai/app/c/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
import { ChatLayoutSection } from '@/components/chat/chat-layout-section'
import FooterCT from '@/components/footer-ct'
import { ResponsiveSidebar } from '@/components/sidebar-responsive'
import { appConfig } from 'mb-env'
import { redirect } from 'next/navigation'
import NextTopLoader from 'nextjs-toploader'

interface ChatLayoutProps {
children: React.ReactNode
}

export default async function ChatLayout({ children }: ChatLayoutProps) {
if (!appConfig.devMode) {
console.error('Navigation to Pro is disabled. No access to this page')
redirect('/')
}

return (
<main className="relative flex flex-col h-[calc(100vh_-_theme(spacing.16))] overflow-hidden">
<NextTopLoader color="#1ED761" initialPosition={0.2} />
Expand Down
7 changes: 7 additions & 0 deletions apps/masterbots.ai/app/c/p/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { ChatLayoutSection } from '@/components/chat/chat-layout-section'
import FooterCT from '@/components/footer-ct'
import { appConfig } from 'mb-env'
import { redirect } from 'next/navigation'
import NextTopLoader from 'nextjs-toploader'

interface ChatLayoutProps {
children: React.ReactNode
}

export default async function ChatLayout({ children }: ChatLayoutProps) {
if (!appConfig.devMode) {
console.error('Navigation to Pro is disabled. No access to this page')
redirect('/')
}

return (
<main className="relative flex flex-col h-[calc(100vh_-_theme(spacing.16))] overflow-hidden">
<NextTopLoader color="#1ED761" initialPosition={0.2} />
Expand Down

0 comments on commit c098eeb

Please sign in to comment.