Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/reactotron-core-ui/src/components/ActionButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ interface Props {
}

function ActionButton({ icon: Icon, tip, tipProps = {}, onClick }: Props) {
const tooltipId = tipProps.id || "tooltip-default"

return (
<Container data-tip={tip} onClick={onClick}>
<Container data-tip={tip} data-for={tooltipId} onClick={onClick}>
<Icon size={24} />
<Tooltip {...tipProps} />
<Tooltip {...tipProps} id={tooltipId} />
</Container>
)
}
Expand Down
1 change: 1 addition & 0 deletions lib/reactotron-core-ui/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const Header: FunctionComponent<React.PropsWithChildren<HeaderComponentProps>> =
<ActionButton
tip={a.tip}
tipProps={{
id: `tip-${idx}`,
effect: "float",
}}
icon={a.icon}
Expand Down