Skip to content

Commit 72caa59

Browse files
author
Dan Carbonell
committed
Merge branch 'CRNS-111/Attachment' of github.com:GetStream/stream-chat-react-native into CRNS-111/Attachment
2 parents 383a7e4 + 128ee5e commit 72caa59

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Attachment/Attachment.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Attachment = (props) => {
6868
{attachment.actions?.length && (
6969
<AttachmentActions
7070
actionHandler={actionHandler}
71-
key={'key-actions-' + attachment.id}
71+
key={`key-actions-${attachment.id}`}
7272
{...attachment}
7373
/>
7474
)}
@@ -83,7 +83,7 @@ const Attachment = (props) => {
8383
<Giphy alignment={alignment} {...attachment} {...cardProps} />
8484
<AttachmentActions
8585
actionHandler={actionHandler}
86-
key={'key-actions-' + attachment.id}
86+
key={`key-actions-${attachment.id}`}
8787
{...attachment}
8888
/>
8989
</View>
@@ -100,7 +100,7 @@ const Attachment = (props) => {
100100
<Card alignment={alignment} {...attachment} {...cardProps} />
101101
<AttachmentActions
102102
actionHandler={actionHandler}
103-
key={'key-actions-' + attachment.id}
103+
key={`key-actions-${attachment.id}`}
104104
{...attachment}
105105
/>
106106
</View>

src/components/Attachment/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const goToURL = (url) => {
6262
if (supported) {
6363
Linking.openURL(url);
6464
} else {
65-
console.log("Don't know how to open URI: " + url);
65+
console.log(`Don't know how to open URI: ${url}`);
6666
}
6767
});
6868
};

src/components/Attachment/FileAttachment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const FileAttachment = ({
8484
{attachment.actions?.length && (
8585
<AttachmentActions
8686
actionHandler={actionHandler}
87-
key={'key-actions-' + attachment.id}
87+
key={`key-actions-${attachment.id}`}
8888
{...attachment}
8989
/>
9090
)}

0 commit comments

Comments
 (0)