feat(www): Finish up on the onboarding (#210)

Merging this prematurely to make sure the team is on the same boat... like dang! We need to find a better way to do this. 

Plus it has become too big
This commit is contained in:
Wanjohi
2025-03-26 02:21:53 +03:00
committed by GitHub
parent 957eca7794
commit f62fc1fb4b
106 changed files with 6329 additions and 866 deletions

View File

@@ -1,4 +1,4 @@
import { ParentProps, Show, createContext, useContext } from "solid-js";
import { JSX, ParentProps, Show, createContext, useContext } from "solid-js";
export function createInitializedContext<
Name extends string,
@@ -12,10 +12,12 @@ export function createInitializedContext<
if (!context) throw new Error(`No ${name} context`);
return context;
},
provider: (props: ParentProps) => {
provider: (props: ParentProps & { loadingUI?: JSX.Element }) => {
const value = cb();
return (
<Show when={value.ready}>
<Show
fallback={props.loadingUI}
when={value.ready}>
<ctx.Provider value={value} {...props}>
{props.children}
</ctx.Provider>