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

feat: add enter/leave helpers and UI map #1031

Draft
wants to merge 5 commits into
base: protocol-squad
Choose a base branch
from

Conversation

leanmendoza
Copy link
Contributor

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Nov 7, 2024

Deploying js-sdk-toolchain with  Cloudflare Pages  Cloudflare Pages

Latest commit: 42a0073
Status: ✅  Deploy successful!
Preview URL: https://70769d34.js-sdk-toolchain.pages.dev
Branch Preview URL: https://feat-ui-hover.js-sdk-toolchain.pages.dev

View logs

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Test this pull request

  • The @dcl/sdk package can be tested in scenes by running

    npm install "https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/ui-hover/dcl-sdk-7.6.6-12138639965.commit-c9acb27.tgz"
  • To test with npx init

    export SDK_COMMANDS="https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/ui-hover/dcl-sdk-commands-7.6.6-12138639965.commit-c9acb27.tgz"
    npx $SDK_COMMANDS init
  • The @dcl/inspector package can be tested by visiting this url

    • Or by installing it via NPM
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/ui-hover/@dcl/inspector/dcl-inspector-7.6.6-12138639965.commit-c9acb27.tgz"
  • The /changerealm command to test test in-world

    /changerealm https://sdk-team-cdn.decentraland.org/ipfs/feat/ui-hover-e2e
    
  • You can preview this build entering:
    https://playground.decentraland.org/?sdk-branch=feat/ui-hover

Signed-off-by: Lean Mendoza <leandro@decentraland.org>
Signed-off-by: Lean Mendoza <leandro@decentraland.org>
@@ -64,6 +64,8 @@ export function Button(props: UiButtonProps) {
<entity
onMouseDown={!!props.disabled ? undefined : onMouseDown}
onMouseUp={!!props.disabled ? undefined : onMouseUp}
onMouseEnter={!!props.disabled ? undefined : onMouseEnter}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
onMouseEnter={!!props.disabled ? undefined : onMouseEnter}
onMouseEnter={onMouseEnter}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that disabled means you can't click it, but why not trigger the mouseEnter/mouseLeave ?

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

Successfully merging this pull request may close these issues.

2 participants