diff --git a/src/components/views/audio_messages/Clock.tsx b/src/components/views/audio_messages/Clock.tsx index 488a5a293b1..13ffaa7d765 100644 --- a/src/components/views/audio_messages/Clock.tsx +++ b/src/components/views/audio_messages/Clock.tsx @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ -import React from "react"; +import React, { HTMLProps } from "react"; import { formatSeconds } from "../../../DateUtils"; import { replaceableComponent } from "../../../utils/replaceableComponent"; -export interface IProps { +export interface IProps extends Pick, "aria-live"> { seconds: number; } @@ -40,6 +40,8 @@ export default class Clock extends React.Component { } public render() { - return { formatSeconds(this.props.seconds) }; + return + { formatSeconds(this.props.seconds) } + ; } } diff --git a/src/components/views/audio_messages/LiveRecordingClock.tsx b/src/components/views/audio_messages/LiveRecordingClock.tsx index b9b582a03b1..aa88d999bed 100644 --- a/src/components/views/audio_messages/LiveRecordingClock.tsx +++ b/src/components/views/audio_messages/LiveRecordingClock.tsx @@ -61,6 +61,6 @@ export default class LiveRecordingClock extends React.PureComponent; + return ; } } diff --git a/src/components/views/audio_messages/PlaybackClock.tsx b/src/components/views/audio_messages/PlaybackClock.tsx index 48946eb21f5..c792d1c4837 100644 --- a/src/components/views/audio_messages/PlaybackClock.tsx +++ b/src/components/views/audio_messages/PlaybackClock.tsx @@ -76,6 +76,9 @@ export default class PlaybackClock extends React.PureComponent { seconds = this.state.durationSeconds; } } - return ; + return ; } } diff --git a/src/components/views/messages/CallEvent.tsx b/src/components/views/messages/CallEvent.tsx index 662e2b2c31a..a46f0106173 100644 --- a/src/components/views/messages/CallEvent.tsx +++ b/src/components/views/messages/CallEvent.tsx @@ -227,7 +227,7 @@ export default class CallEvent extends React.PureComponent { if (state === CallState.Connected) { return (
- + { this.props.timestamp }
);