diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-02 15:11:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-03 01:58:17 -0300 |
commit | d1aa79eae817b1cf4c23f800308ecad101692ac7 (patch) | |
tree | 32282462d6dc6116ffe627159286f31a1494c7b1 /packages/web-util/src/tests/hook.ts | |
parent | d48ea17c6345abaa732deb5fab6141449d463e41 (diff) |
remove axios, better api
Diffstat (limited to 'packages/web-util/src/tests/hook.ts')
-rw-r--r-- | packages/web-util/src/tests/hook.ts | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index ddc96eb0e..fb9f979e5 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -44,31 +44,6 @@ export function createExample<Props>( }; } -// export function createExampleWithCustomContext<Props, ContextProps>( -// Component: FunctionalComponent<Props>, -// props: Partial<Props> | (() => Partial<Props>), -// ContextProvider: FunctionalComponent<ContextProps>, -// contextProps: Partial<ContextProps>, -// ): ComponentChildren { -// /** -// * FIXME: -// * This may not be useful since the example can be created with context -// * already -// */ -// const evaluatedProps = typeof props === "function" ? props() : props; -// const Render = (args: any): VNode => create(Component, args); -// const WithContext = (args: any): VNode => -// create(ContextProvider, { -// ...contextProps, -// children: [Render(args)], -// } as any); - -// return { -// component: WithContext, -// props: evaluatedProps, -// }; -// } - const isNode = typeof window === "undefined"; /** |