chore: lint
This commit is contained in:
@@ -9,7 +9,7 @@ interface SocketState {
|
|||||||
setId: (id: string) => void;
|
setId: (id: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SocketStore implements Partial<SocketState>{
|
class SocketStore implements Partial<SocketState> {
|
||||||
socket = null;
|
socket = null;
|
||||||
id = '';
|
id = '';
|
||||||
};
|
};
|
||||||
@@ -38,15 +38,15 @@ export const SocketProvider = ({ children }: { children: JSX.Element }) => {
|
|||||||
setActiveId(id);
|
setActiveId(id);
|
||||||
}, [setSocket]);
|
}, [setSocket]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<socketStoreContext.Provider
|
<socketStoreContext.Provider
|
||||||
value={{
|
value={{
|
||||||
socket,
|
socket,
|
||||||
id,
|
id,
|
||||||
setId,
|
setId,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</socketStoreContext.Provider>
|
</socketStoreContext.Provider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user