TP-89230 | softcode sip credentials
This commit is contained in:
@@ -72,9 +72,8 @@ const initialState : StateType = {
|
||||
callStartTime: Date.now(),
|
||||
}
|
||||
|
||||
|
||||
let adapter: IAdapter;
|
||||
function UseCallSdk({AdapterClass, adapterOptions} : {AdapterClass: new (adapterOptions: IAdapter)=> IAdapter, adapterOptions: IAdapter}) {
|
||||
let adapter: IAdapter;
|
||||
useEffect(() => {
|
||||
adapter = new AdapterClass(adapterOptions);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user