Format SSH prompt reducer state
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
7ead5c71eb
commit
6ff98af8e0
1 file changed
+1
-4
@@ -50,10 +50,7 @@ type PromptDraftAction =
|
||||
| { type: "password.set"; password: string }
|
||||
| { type: "error.set"; error: string | null };
|
||||
|
||||
function promptDraftReducer(
|
||||
state: PromptDraftState,
|
||||
action: PromptDraftAction,
|
||||
): PromptDraftState {
|
||||
function promptDraftReducer(state: PromptDraftState, action: PromptDraftAction): PromptDraftState {
|
||||
switch (action.type) {
|
||||
case "prompt.reset":
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user