-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'transcript-show-by-default' into 'master'
show transcript by default for vocal messages See merge request kchat/webapp!950
- Loading branch information
Showing
7 changed files
with
154 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
webapp/channels/src/components/widgets/loading/loading_transcript_spinner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
|
||
import classNames from 'classnames'; | ||
import React from 'react'; | ||
|
||
type Props = { | ||
text?: React.ReactNode; | ||
} | ||
|
||
const TranscriptSpinner = ({text = null}: Props) => { | ||
return ( | ||
<span | ||
id='loadingSpinner' | ||
className={classNames('LoadingSpinner', {'with-text': Boolean(text)})} | ||
style={{fontSize: '1.5em', color: '#0098FF'}} | ||
data-testid='loadingSpinner' | ||
> | ||
<i | ||
className='fa fa-circle-o-notch fa-spin fa-3x fa-fw' | ||
style={{fontSize: '0.5em'}} | ||
/> | ||
{text} | ||
</span> | ||
); | ||
}; | ||
|
||
export default React.memo(TranscriptSpinner); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters