-
Notifications
You must be signed in to change notification settings - Fork 1
Consolidate /create and /templates #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Deployed to Cloudflare Pages
|
| const trackedEvents = useRef<Set<number>>(new Set()) | ||
|
|
||
| useEffect(() => { | ||
| if (flowMode !== 'create') return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah handling sideeffects here is annoying
| {({ openConnectModal }) => { | ||
| return isConnected ? ( | ||
| <Button size="lg" asChild> | ||
| <Link to="/create"> | ||
| Get started | ||
| <ArrowRight /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I meant was: when user is on path /create: if wallet is not connected, show connect button + TemplatesList. If wallet is connected then show step 0 (TemplatesList). Delete /templates path. Delete "Get started" button
| <div className="mx-auto px-8 py-12"> | ||
| <div className="mb-10"> | ||
| <h1 className="text-2xl font-white font-bold text-center mb-8"> | ||
| Create your app from a template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having a different page title above TemplatesList
"Create your app from a template" vs "Start by Selecting a Template" is annoying. maybe not worth consolidating
Follow up on the discussion #267 (comment)