File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,21 +97,14 @@ function App() {
9797 } ;
9898 } , [ ] ) ;
9999
100- const handleFirstVisitComplete = async ( ) => {
101- const updatedSettings = { ...settings , firstVisitComplete : true } ;
102- await invoke ( "save_settings" , { settings : updatedSettings } ) ;
103- setSettings ( updatedSettings ) ;
104- setActiveSection ( 'prompts' ) ;
105- } ;
106-
107100 const renderContent = ( ) => {
108101 if ( loading ) {
109102 return < div className = "flex items-center justify-center min-h-screen text-slate-600" > Loading...</ div > ;
110103 }
111104
112105 switch ( activeSection ) {
113106 case 'info' :
114- return < InfoPage onComplete = { ! settings . firstVisitComplete ? handleFirstVisitComplete : undefined } /> ;
107+ return < InfoPage /> ;
115108 case 'prompts' :
116109 return < PromptSettings settings = { settings } setSettings = { setSettings } /> ;
117110 case 'api' :
Original file line number Diff line number Diff line change @@ -5,11 +5,8 @@ import { useShortcutEditor } from "../hooks/useShortcutEditor";
55import { backendFormatToShortcut , shortcutToBackendFormat , Shortcut } from "../utils/keyboardUtils" ;
66import miloLogo from "../assets/icon.png" ;
77
8- interface InfoPageProps {
9- onComplete ?: ( ) => void ;
10- }
118
12- export function InfoPage ( { onComplete } : InfoPageProps ) {
9+ export function InfoPage ( ) {
1310 const [ shortcut , setShortcut ] = useState < Shortcut > ( [ ] ) ;
1411 const [ shortcutEnabled , setShortcutEnabled ] = useState ( true ) ;
1512
You can’t perform that action at this time.
0 commit comments