We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello guys, how to fix this?
The text was updated successfully, but these errors were encountered:
it a little bit tricky but i hope this helps
'use client' import React, {useEffect} from 'react'; import { useRouter } from 'next/navigation' import {useAuth} from "@/context/AuthProvider"; import dynamic from 'next/dynamic' const AdminChat = dynamic(() => import('@/Components/AdminChat'), { ssr: false }) const Page = () => { const {user} = useAuth() const router = useRouter() useEffect(() => { if(!user) { router.replace('/auth') } }, []) return ( <AdminChat /> ); }; export default Page;
import React from 'react'; import { ChatEngine } from 'react-chat-engine'; const AdminChat = () => { return ( <ChatEngine // @ts-ignore height="calc(100vh - 64px)" projectID="821e329e-26e6-4e6f-b7ea-c9cd98dc8253" userName="Admin" userSecret="admin" /> ); }; export default AdminChat;
Sorry, something went wrong.
No branches or pull requests
hello guys, how to fix this?
The text was updated successfully, but these errors were encountered: