mirror of
https://github.com/dergigi/boris.git
synced 2026-01-20 23:34:52 +01:00
style(tts): remove Stop button, keep Play/Pause and Speed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { useTextToSpeech } from '../hooks/useTextToSpeech'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faPlay, faPause, faStop, faGauge } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faPlay, faPause, faGauge } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
interface Props {
|
||||
text: string
|
||||
@@ -53,16 +53,6 @@ const TTSControls: React.FC<Props> = ({ text, defaultLang, className }) => {
|
||||
<FontAwesomeIcon icon={!speaking ? faPlay : (paused ? faPlay : faPause)} />
|
||||
<span>{playLabel}</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="article-menu-btn"
|
||||
onClick={stop}
|
||||
title="Stop"
|
||||
disabled={!speaking && !paused}
|
||||
>
|
||||
<FontAwesomeIcon icon={faStop} />
|
||||
<span>Stop</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="article-menu-btn"
|
||||
|
||||
Reference in New Issue
Block a user