diff options
-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> ) } |