Skip to content

Commit 2023832

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(ui): preserve the existing chat recovery button
1 parent 0cad262 commit 2023832

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎apps/sim/app/(interfaces)/chat/components/error-state/error-state.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Chip, StatusPageContent } from '@sim/emcn'
3+
import { Button, StatusPageContent } from '@sim/emcn'
44
import { useRouter } from 'next/navigation'
55
import { APP_ENTRY_PATH } from '@/lib/navigation/paths'
66

@@ -14,15 +14,14 @@ export function ChatErrorState({ error }: ChatErrorStateProps) {
1414
return (
1515
<div className='flex flex-1 items-center justify-center px-4 py-16 text-center'>
1616
<StatusPageContent title='Chat Unavailable' description={error}>
17-
<Chip
17+
<Button
1818
type='button'
1919
variant='primary'
20-
fullWidth
21-
className='text-center'
20+
className='h-[32px] w-full gap-2 px-2.5 text-sm'
2221
onClick={() => router.push(APP_ENTRY_PATH)}
2322
>
2423
Open Sim
25-
</Chip>
24+
</Button>
2625
</StatusPageContent>
2726
</div>
2827
)

0 commit comments

Comments
 (0)