File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/devtools-ui/src/components Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/devtools-ui ' : patch
3+ ---
4+
5+ Adds optional prop to header for handeling clicks to the logo.
Original file line number Diff line number Diff line change @@ -21,17 +21,19 @@ export function Header({
2121export function HeaderLogo ( {
2222 children,
2323 flavor,
24+ onClick,
2425} : {
2526 children : JSX . Element
2627 flavor : {
2728 light : string
2829 dark : string
2930 }
31+ onClick ?: JSX . EventHandler < HTMLButtonElement , MouseEvent >
3032} ) {
3133 const styles = useStyles ( )
3234 return (
3335 < div class = { styles ( ) . header . logoAndToggleContainer } >
34- < button class = { clsx ( styles ( ) . header . logo ) } >
36+ < button class = { clsx ( styles ( ) . header . logo ) } onClick = { onClick } >
3537 < span class = { clsx ( styles ( ) . header . tanstackLogo ) } > TANSTACK</ span >
3638 < span
3739 class = { clsx ( styles ( ) . header . flavorLogo ( flavor . light , flavor . dark ) ) }
You can’t perform that action at this time.
0 commit comments