Skip to content

Commit 4d7a9bc

Browse files
committed
chore: remove unused calback
1 parent 1958521 commit 4d7a9bc

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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':

src/components/InfoPage.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ import { useShortcutEditor } from "../hooks/useShortcutEditor";
55
import { backendFormatToShortcut, shortcutToBackendFormat, Shortcut } from "../utils/keyboardUtils";
66
import 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

0 commit comments

Comments
 (0)