add tooltip for HomeIcon

pull/3137/head
Joseph Izang 2 years ago
parent 8dd32709a4
commit 0728a5ac5b
  1. 23
      libs/remix-ui/vertical-icons-panel/src/lib/components/Home.tsx

@ -1,3 +1,4 @@
import { CustomTooltip } from '@remix-ui/helper'
import React from 'react'
import BasicLogo from './BasicLogo'
interface HomeProps {
@ -6,16 +7,20 @@ interface HomeProps {
function Home ({ verticalIconPlugin }: HomeProps) {
return (
<div
className="mt-2 my-1 remixui_homeIcon"
onClick={async () => await verticalIconPlugin.activateHome()}
{...{ plugin: 'home'}}
title="Home"
data-id="verticalIconsHomeIcon"
id="verticalIconsHomeIcon"
<CustomTooltip
placement="right"
tooltipText={"Home"}
>
<BasicLogo />
</div>
<div
className="mt-2 my-1 remixui_homeIcon"
onClick={async () => await verticalIconPlugin.activateHome()}
{...{ plugin: 'home'}}
data-id="verticalIconsHomeIcon"
id="verticalIconsHomeIcon"
>
<BasicLogo />
</div>
</CustomTooltip>
)
}

Loading…
Cancel
Save