File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/website/components/site Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 Stack ,
1212 Tabs ,
1313} from '@chakra-ui/react'
14+ import { ErrorBoundary } from 'next/dist/client/components/error-boundary'
1415import dynamic from 'next/dynamic'
1516import Link from 'next/link'
1617import { HiArrowRight } from 'react-icons/hi'
@@ -40,14 +41,20 @@ const ComponentDemos = () => {
4041 position = "relative"
4142 >
4243 < Tabs . Content value = "crm" height = "100%" p = "0" >
43- < CRMDemo />
44+ < ErrorBoundary errorComponent = { ErrorFallback } >
45+ < CRMDemo />
46+ </ ErrorBoundary >
4447 </ Tabs . Content >
4548 </ Tabs . ContentGroup >
4649 </ Tabs . Root >
4750 </ Container >
4851 )
4952}
5053
54+ function ErrorFallback ( props : { error : Error } ) {
55+ return < div > Error</ div >
56+ }
57+
5158export const HeroSection = ( ) => (
5259 < Box px = "8" >
5360 < Box pt = "32" overflow = "hidden" position = "relative" >
You can’t perform that action at this time.
0 commit comments