File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
apps/desktop/src/components/chat/body Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ import { useCallback } from "react" ;
2+
13import { commands as windowsCommands } from "@hypr/plugin-windows" ;
24import { Button } from "@hypr/ui/components/ui/button" ;
35
46export function ChatBodyEmpty ( { isModelConfigured = true } : { isModelConfigured ?: boolean } ) {
5- const handleGoToSettings = ( ) => {
6- windowsCommands . windowShow ( { type : "settings" } ) ;
7- } ;
7+ const handleGoToSettings = useCallback ( ( ) => {
8+ windowsCommands . windowShow ( { type : "settings" } )
9+ . then ( ( ) => new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) )
10+ . then ( ( ) =>
11+ windowsCommands . windowEmitNavigate ( { type : "settings" } , {
12+ path : "/app/settings" ,
13+ search : { tab : "intelligence" } ,
14+ } )
15+ ) ;
16+ } , [ ] ) ;
817
918 const quickActions = [
1019 "Make a 1-paragraph summary" ,
You can’t perform that action at this time.
0 commit comments