Execute oxfmt (#1166)
Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import type { MeshRegistry } from "@meshtastic/sdk";
|
||||
import { createContext } from "react";
|
||||
|
||||
export const MeshRegistryContext = createContext<MeshRegistry | undefined>(undefined);
|
||||
export const MeshRegistryContext = createContext<MeshRegistry | undefined>(
|
||||
undefined,
|
||||
);
|
||||
|
||||
@@ -12,6 +12,13 @@ export interface MeshRegistryProviderProps {
|
||||
* more than one connected device at a time. For single-client apps, prefer
|
||||
* `<MeshProvider client={...}>`.
|
||||
*/
|
||||
export function MeshRegistryProvider({ registry, children }: MeshRegistryProviderProps) {
|
||||
return <MeshRegistryContext.Provider value={registry}>{children}</MeshRegistryContext.Provider>;
|
||||
export function MeshRegistryProvider({
|
||||
registry,
|
||||
children,
|
||||
}: MeshRegistryProviderProps) {
|
||||
return (
|
||||
<MeshRegistryContext.Provider value={registry}>
|
||||
{children}
|
||||
</MeshRegistryContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user