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

Tech/improvements 2 #10083

Merged
merged 7 commits into from
Mar 9, 2020
Merged

Tech/improvements 2 #10083

merged 7 commits into from
Mar 9, 2020

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 9, 2020

CHANGE so all interfaces & types are exported in lib/ui
REMOVE really weird href = object type
ADD ability for Tooltip onClick event access to clicked item + event

@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Mar 9, 2020
@ndelangen ndelangen added this to the 6.0.0 milestone Mar 9, 2020
@ndelangen ndelangen self-assigned this Mar 9, 2020
const { id, title, href, active } = rest;
const onClick = useCallback(
(event: SyntheticEvent) => {
onClickFromProps(event, rest);
Copy link
Member Author

Choose a reason for hiding this comment

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

It now gets called with 2 arguments, the first is the event, as it was before, the second (new) argument is the object, with the id, href, etc on it.

@ndelangen ndelangen requested a review from alterx as a code owner March 9, 2020 17:13
@ndelangen ndelangen merged commit 7811726 into next Mar 9, 2020
@ndelangen ndelangen deleted the tech/improvements-2 branch March 9, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant