Skip to content

Commit

Permalink
Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 4, 2019
1 parent b8d1dfa commit bafce63
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/component/src/BasicTranscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { css } from 'glamor';
import { Panel as ScrollToBottomPanel } from 'react-scroll-to-bottom';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import React, { useMemo } from 'react';

import connectToWebChat from './connectToWebChat';
import ScrollToEndButton from './Activity/ScrollToEndButton';
import SpeakActivity from './Activity/Speak';
import useActivities from './hooks/useActivities';
Expand Down Expand Up @@ -132,7 +131,7 @@ const BasicTranscript = ({ className }) => {
className={classNames(LIST_CSS + '', activitiesStyleSet + '')}
role="list"
>
{activityElements2.map(({ activity, element, key, shouldShowTimestamp, shouldSpeak }, index) => (
{activityElements2.map(({ activity, element, key, shouldShowTimestamp, shouldSpeak }) => (
<li
// Because of differences in browser implementations, aria-label=" " is used to make the screen reader not repeat the same text multiple times in Chrome v75
aria-label=" "
Expand All @@ -144,7 +143,7 @@ const BasicTranscript = ({ className }) => {
role="listitem"
>
{element}
{shouldSPeak && <SpeakActivity activity={activity} />}
{shouldSpeak && <SpeakActivity activity={activity} />}
</li>
))}
</ul>
Expand Down

0 comments on commit bafce63

Please sign in to comment.