Skip to content

Commit

Permalink
feat: Adiciona um tooltip no botão de refresh (#209)
Browse files Browse the repository at this point in the history
* Add tooltip to show hover message through refresh button

* Remove fragments
  • Loading branch information
devgl96 authored Jul 20, 2024
1 parent 95bb703 commit 9f7560c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ const Home = () => {
variant="ghost"
size="sm"
onClick={() => refresh()}
className="disabled:bg-red-500 hover:bg-red-400"
className="group disabled:bg-red-500 hover:bg-red-400"
>
<RotateCw size={20} className="stroke-white" />
<span className="absolute pointer-events-none -right-20 top-9 z-20 mt-3 -translate-x-1/2 whitespace-nowrap duration-900 rounded bg-black px-4 py-[6px] text-sm font-semibold text-white opacity-0 group-hover:opacity-100">
Atualizar abrigos disponíveis
</span>
</Button>
</div>
}
Expand Down

0 comments on commit 9f7560c

Please sign in to comment.