Skip to content

Commit 26f1db9

Browse files
committed
Rename symbol
1 parent b7c7b7b commit 26f1db9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react/src/components/form/flow/org-switching-flow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const orgSwitchingFlowConfig: FlowConfig = {
3131
* @param opts
3232
* @returns
3333
*/
34-
export function createFlow(opts: CreateFlowOptions) {
34+
export function createOrgSwitchingFlow(opts: CreateFlowOptions) {
3535
let state: FlowState;
3636
let logInFn: undefined | LogIn | MFA = opts.logInFn;
3737
let recoverFn: undefined | Recover = opts.recover;
@@ -112,4 +112,4 @@ export function createFlow(opts: CreateFlowOptions) {
112112
};
113113
}
114114

115-
export type Flow = ReturnType<typeof createFlow>;
115+
export type Flow = ReturnType<typeof createOrgSwitchingFlow>;

packages/react/src/components/form/org-switching/useOrgSwitchingFlowState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useMemo, useRef, useState } from "react";
22

33
import { useSlashID } from "../../../hooks/use-slash-id";
4-
import { Flow, createFlow } from "../flow/org-switching-flow";
4+
import { Flow, createOrgSwitchingFlow } from "../flow/org-switching-flow";
55
import { Handle } from "../../../domain/types";
66
import { FlowState, CreateFlowOptions } from "../flow/flow.common";
77

@@ -18,7 +18,7 @@ export function useOrgSwitchingFlowState(opts: CreateFlowOptions) {
1818
}, [user]);
1919

2020
const flowRef = useRef<Flow>(
21-
createFlow({
21+
createOrgSwitchingFlow({
2222
lastUserHandle,
2323
...opts,
2424
logInFn: async () => {

0 commit comments

Comments
 (0)