fix: update eslint config to test .ts and .js separately (#2805)
* fix: update eslint config * fix: update ts ignore * fix: update eslint config * Update TeamAvailabilityScreen.tsx * Type fixes * Update useIntercom.ts Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
952a149604
commit
31aff64e42
12 files changed
+43
-36
No files matched your search
@@ -1,10 +1,17 @@
|
||||
import noop from "lodash/noop";
|
||||
import { createContext, ReactNode, useContext } from "react";
|
||||
|
||||
import { localStorage } from "@calcom/lib/webstorage";
|
||||
|
||||
type contractsContextType = Record<string, string>;
|
||||
type contractsContextType = {
|
||||
contracts: Record<string, string>;
|
||||
addContract: (payload: addContractsPayload) => void;
|
||||
};
|
||||
|
||||
const contractsContextDefaultValue: contractsContextType = {};
|
||||
const contractsContextDefaultValue: contractsContextType = {
|
||||
contracts: {},
|
||||
addContract: noop,
|
||||
};
|
||||
|
||||
const ContractsContext = createContext<contractsContextType>(contractsContextDefaultValue);
|
||||
|
||||
@@ -37,9 +44,5 @@ export function ContractsProvider({ children }: Props) {
|
||||
addContract,
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<ContractsContext.Provider value={value as any}>{children}</ContractsContext.Provider>
|
||||
</>
|
||||
);
|
||||
return <ContractsContext.Provider value={value}>{children}</ContractsContext.Provider>;
|
||||
}
|
||||
Reference in new issue
Block a user