initial migration from zustand (#2852)
* inital migration with a couple lingering concerns
* move is stream ready back
* put htmlRef back in useStore
* final tidy of useStore
* test tweaks
* tweak more
* more test tweaks
* fmt
* test tweaks
* attempts at fixing 'Basic default modeling and sketch hotkeys work'
* more tries
* 😭
* try again
* fmt
			
			
This commit is contained in:
		| @ -1,12 +1,10 @@ | ||||
| import { useModelingContext } from 'hooks/useModelingContext' | ||||
| import { OnboardingButtons, useDemoCode, useDismiss, useNextClick } from '.' | ||||
| import { onboardingPaths } from 'routes/Onboarding/paths' | ||||
| import { useStore } from '../../useStore' | ||||
|  | ||||
| export default function OnboardingCodeEditor() { | ||||
|   useDemoCode() | ||||
|   const { buttonDownInStream } = useStore((s) => ({ | ||||
|     buttonDownInStream: s.buttonDownInStream, | ||||
|   })) | ||||
|   const { context } = useModelingContext() | ||||
|   const dismiss = useDismiss() | ||||
|   const next = useNextClick(onboardingPaths.PARAMETRIC_MODELING) | ||||
|  | ||||
| @ -15,7 +13,7 @@ export default function OnboardingCodeEditor() { | ||||
|       <div | ||||
|         className={ | ||||
|           'z-10 max-w-xl border border-chalkboard-50 dark:border-chalkboard-80 shadow-lg h-[75vh] flex flex-col justify-center bg-chalkboard-10 dark:bg-chalkboard-90 p-8 rounded' + | ||||
|           (buttonDownInStream ? '' : ' pointer-events-auto') | ||||
|           (context.store?.buttonDownInStream ? '' : ' pointer-events-auto') | ||||
|         } | ||||
|       > | ||||
|         <section className="flex-1 overflow-y-auto"> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user