Skip to content

Commit

Permalink
fix ModulesProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 9, 2024
1 parent c0ebca3 commit 524f037
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
8 changes: 2 additions & 6 deletions lib/alem-vm/alem-vm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export declare const ModulesContext: () => void;
/**
* Modules Provider
*/
export declare const ModulesProvider: ({
children,
}: ChildrenProps) => JSX.Element;
export declare const ModulesProvider: () => JSX.Element;

/**
* useModule hook
Expand All @@ -34,9 +32,7 @@ export declare const useModule: (inputs: UseModuleProps) => void;
/**
* Provides the necessary states and props for Router.
*/
// export declare const RouterProvider: ({
// children,
// }: ChildrenProps) => JSX.Element;
export declare const RouterProvider: () => JSX.Element;

/**
* Provides the necessary states and props for Router.
Expand Down
5 changes: 2 additions & 3 deletions lib/alem-vm/importable/ModulesProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ModulesContext from "./ModulesContext";
import { ChildrenProps, ModuleResponseData, useContext } from "../alem-vm";
import { ModuleResponseData, useContext } from "../alem-vm";

const ModulesProvider = ({ children }: ChildrenProps) => {
const ModulesProvider = () => {
ModulesContext();

const modulesHandler = `
Expand Down Expand Up @@ -36,7 +36,6 @@ const ModulesProvider = ({ children }: ChildrenProps) => {
}}
/>
))}
{children}
</>
);
};
Expand Down
6 changes: 3 additions & 3 deletions lib/alem-vm/importable/RouterProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ChildrenProps, RouterContext } from "../alem-vm";
import { RouterContext } from "../alem-vm";

const RouterProvider = ({ children }: ChildrenProps) => {
const RouterProvider = () => {
RouterContext();

return <>{children}</>;
return <></>;
};

export default RouterProvider;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alem",
"description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.",
"version": "1.0.0-beta.10",
"version": "1.0.0-beta.11",
"main": "main.js",
"types": "index.d.ts",
"author": "Wenderson Pires - wendersonpires.near",
Expand Down

0 comments on commit 524f037

Please sign in to comment.