Skip to content

Commit 0112555

Browse files
committed
Lint
1 parent 805123d commit 0112555

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

source/react-native/b2b/src/contexts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const StytchMemberSessionContext = createContext<ApiB2bSessionV1MemberSes
1212
undefined,
1313
);
1414
export const StytchOrganizationContext = createContext<ApiOrganizationV1Organization | undefined>(
15-
undefined
15+
undefined,
1616
);
1717
export const StytchB2BContext = createContext<StytchB2B | null>(null);
1818
export const StytchB2BAuthenticationStateContext = createContext<B2BAuthenticationState>(

source/react-native/b2b/src/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useStytchMemberSession = (): ApiB2bSessionV1MemberSession | undefin
2222
};
2323
export const useStytchOrganization = (): ApiOrganizationV1Organization | undefined => {
2424
return useContext(StytchOrganizationContext);
25-
}
25+
};
2626
export const useStytchB2B = (): StytchB2B => {
2727
const client = useContext(StytchB2BContext);
2828
if (client === null) {

source/react-native/b2b/src/providers.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export const withStytchMemberSession = <T extends object>(
5353
return WithStytchMemberSession;
5454
};
5555
export const withStytchOrganization = <T extends object>(
56-
Component: React.ComponentType<T & { stytchOrganization: ApiOrganizationV1Organization | undefined }>,
56+
Component: React.ComponentType<
57+
T & { stytchOrganization: ApiOrganizationV1Organization | undefined }
58+
>,
5759
): React.ComponentType<T> => {
5860
const WithStytchOrganization: React.ComponentType<T> = (props) => {
5961
const organization = useStytchOrganization();
@@ -133,7 +135,11 @@ export const StytchB2BProvider = ({
133135
newOrganization = state.organization;
134136
}
135137
setClientState((oldState) => {
136-
const newState = { member: newMember, memberSession: newMemberSession, organization: newOrganization };
138+
const newState = {
139+
member: newMember,
140+
memberSession: newMemberSession,
141+
organization: newOrganization,
142+
};
137143
return mergeWithStableProps(oldState, newState);
138144
});
139145
setAuthenticationState(state);

0 commit comments

Comments
 (0)