Skip to content
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

persist onboarding tips visibility #43

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Conversation

mrudulpatil18
Copy link
Contributor

fixes #38

  • Added should_onboarding_tips_be_closed & setOnboardingTipsClosed to global store
  • Updated LandingHero to use global store for onboarding tips visibility

Copy link

vercel bot commented Oct 8, 2024

@mrudulpatil18 is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.


export const LandingHero = () => {
const [visible, setVisible] = useState(true)
const { should_onboarding_tips_be_closed, setOnboardingTipsClosed } = useGlobalStore()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a selector with the global store- it will cause less react-rerenders (important react optimization)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes made

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very close! minor change

Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
snippets ✅ Ready (Inspect) Visit Preview Oct 9, 2024 4:26am

@seveibar
Copy link
Contributor

seveibar commented Oct 9, 2024

format failure, biome vscode extension w/ format on save or run bun format

@mrudulpatil18
Copy link
Contributor Author

format failure, biome vscode extension w/ format on save or run bun format

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The onboarding tips should stay closed if you refresh the page
2 participants