Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Attachment/Geolocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const Geolocation = ({
<button
className='str-chat__message-attachment-geolocation__stop-sharing-button'
onClick={() => channel?.stopLiveLocationSharing(location)}
type='button'
>
{t('Stop sharing')}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports[`Card (1) should render card without caption if attachment type is audio
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down Expand Up @@ -258,6 +259,7 @@ exports[`Card (7) should render audio with caption using og_scrape_url and with
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down Expand Up @@ -470,6 +472,7 @@ exports[`Card (10) should render audio without title if attachment type is audio
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down Expand Up @@ -667,6 +670,7 @@ exports[`Card (13) should render audio without title and with caption using og_s
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down Expand Up @@ -851,6 +855,7 @@ exports[`Card (16) should render audio widget with title & text in Card content
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down Expand Up @@ -1384,6 +1389,7 @@ exports[`Card (25) should render audio widget with image loaded from thumb_url a
<button
class="str-chat__message-attachment-audio-widget--play-button"
data-testid="play-audio"
type="button"
>
<svg
fill="none"
Expand Down
1 change: 1 addition & 0 deletions src/components/Attachment/components/PlayButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const PlayButton = ({ isPlaying, onClick }: PlayButtonProps) => (
className='str-chat__message-attachment-audio-widget--play-button'
data-testid={isPlaying ? 'pause-audio' : 'play-audio'}
onClick={onClick}
type='button'
>
{isPlaying ? <PauseIcon /> : <PlayTriangleIcon />}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const PlaybackRateButton = ({ children, onClick }: PlaybackRateButtonProp
className='str-chat__message_attachment__playback-rate-button'
data-testid='playback-rate-button'
onClick={onClick}
type='button'
>
{children}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const FileAttachmentPreview = ({
attachment.localMetadata?.id &&
removeAttachments([attachment.localMetadata?.id])
}
type='button'
>
<CloseIcon />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const GeolocationPreview = ({
className='str-chat__attachment-preview-delete'
data-testid='location-preview-item-delete-button'
onClick={remove}
type='button'
>
<CloseIcon />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const ImageAttachmentPreview = ({
data-testid='image-preview-item-delete-button'
disabled={uploadState === 'uploading'}
onClick={() => id && removeAttachments([id])}
type='button'
>
<CloseIcon />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const UnsupportedAttachmentPreview = ({
attachment.localMetadata?.id &&
removeAttachments([attachment.localMetadata?.id])
}
type='button'
>
<CloseIcon />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const VoiceRecordingPreview = ({
onClick={() =>
attachment.localMetadata?.id && removeAttachments([attachment.localMetadata.id])
}
type='button'
>
<CloseIcon />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`AttachmentPreviewList should render custom BaseImage component 1`] = `
class="str-chat__attachment-preview-delete"
data-testid="image-preview-item-delete-button"
disabled=""
type="button"
>
<svg
data-testid="close-no-outline"
Expand Down Expand Up @@ -98,6 +99,7 @@ exports[`AttachmentPreviewList should render custom BaseImage component 1`] = `
class="str-chat__attachment-preview-delete"
data-testid="image-preview-item-delete-button"
disabled=""
type="button"
>
<svg
data-testid="close-no-outline"
Expand Down