History

Format SSH prompt reducer state

Cursor Agent committed 6 months ago

Commit 6ff98af1 parent 7ead5c71 file · +1 −4Browse files

Unified · Split

apps/web/src/components/desktop/SshPasswordPromptDialog.tsx+1−4
@@ -50,10 +50,7 @@ type PromptDraftAction = · 49 unmodified lines
50 | { type: "password.set"; password: string }50 | { type: "password.set"; password: string }
51 | { type: "error.set"; error: string | null };51 | { type: "error.set"; error: string | null };
52 52
53function promptDraftReducer(53function promptDraftReducer(state: PromptDraftState, action: PromptDraftAction): PromptDraftState {
54 state: PromptDraftState,
55 action: PromptDraftAction,
56): PromptDraftState {
57 switch (action.type) {54 switch (action.type) {
58 case "prompt.reset":55 case "prompt.reset":
59 return {56 return {