Skip to content

Commit

Permalink
feat: add title to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
devgustavosantos committed Jul 27, 2024
1 parent 0e478bf commit bee5454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/StartStopButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function StartStopButton() {
>
{isCountdownStopped ? <S.PlayIcon /> : <S.StopIcon />}

<S.ButtonText>
<S.ButtonText title="Iniciar ou interromper a contagem">
{isCountdownStopped ? 'Começar' : 'Interromper'}
</S.ButtonText>

Expand Down
2 changes: 2 additions & 0 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function Home() {
<S.MinutesContainer>
<S.MinutesButtons
type="button"
title="Diminuir o tempo desejado"
onClick={() => handleDesiredTimeOnClick(false)}
>
<Minus />
Expand All @@ -44,6 +45,7 @@ export function Home() {
/>
<S.MinutesButtons
type="button"
title="Aumentar o tempo desejado"
onClick={() => handleDesiredTimeOnClick(true)}
>
<Plus />
Expand Down

0 comments on commit bee5454

Please sign in to comment.