diff options
author | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-07-11 11:04:36 +0200 |
---|---|---|
committer | Manuel Palenzuela Merino <manuel.palenzuela@datadoghq.com> | 2024-07-11 11:04:36 +0200 |
commit | a94c5dddb3faad2b263f4e921751db92fd5ea2ea (patch) | |
tree | 2870a006a7d8e291c53b5cba9ec0886d371a5180 | |
parent | Pages: Search: Add search page (diff) | |
download | fs-tracer-frontend-a94c5dddb3faad2b263f4e921751db92fd5ea2ea.tar.gz fs-tracer-frontend-a94c5dddb3faad2b263f4e921751db92fd5ea2ea.tar.bz2 fs-tracer-frontend-a94c5dddb3faad2b263f4e921751db92fd5ea2ea.zip |
Components: Sidebar: Show link on hover
-rw-r--r-- | src/components/Sidebar/SidebarButton.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/Sidebar/SidebarButton.tsx b/src/components/Sidebar/SidebarButton.tsx index efcb163..aee3642 100644 --- a/src/components/Sidebar/SidebarButton.tsx +++ b/src/components/Sidebar/SidebarButton.tsx @@ -6,12 +6,14 @@ export default function SidebarButton(props: any) { } return ( - <div role="button" - className={buttonStyle}> - <div className="grid mr-4 place-items-center"> - <i className={props.icon}></i> + <a href={props.href}> + <div role="button" + className={buttonStyle}> + <div className="grid mr-4 place-items-center"> + <i className={props.icon}></i> + </div> + {props.name} </div> - <a href={props.href}>{props.name}</a> - </div> + </a> ) } |