Skip to content

Commit

Permalink
Update link aisharing
Browse files Browse the repository at this point in the history
  • Loading branch information
alifnaufalyasin committed Feb 2, 2022
1 parent ebdae6d commit 1e8648d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pages/AiSharing.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { useEffect } from 'react'
import { Heading } from "@chakra-ui/react";
import { useRouter } from 'next/router'

// Here you would fetch and return the user
const useUser = () => ({ user: null, loading: false })

export default function Page() {
const { user, loading } = useUser()
const router = useRouter()

useEffect(() => {
if (!(user || loading)) {
router.push('https://telkomuniversity-ac-id.zoom.us/j/99566436616')
}
}, [user, loading])

return (
<Heading as="h2" fontSize={{ base: "lg", lg: "xl" }}>
Redirecting to Ai Sharing Meeting Room ...
</Heading>
)
}

0 comments on commit 1e8648d

Please sign in to comment.