Skip to content

Commit 6b40415

Browse files
committed
fix: tests and lint issues
1 parent 5eebbae commit 6b40415

File tree

13 files changed

+16
-14
lines changed

13 files changed

+16
-14
lines changed

package/src/components/MessageList/__tests__/MessageList.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react';
22

3+
import { FlatList } from 'react-native';
4+
35
import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react-native';
46

57
import { OverlayProvider } from '../../../contexts/overlayContext/OverlayProvider';
@@ -17,8 +19,8 @@ import { Channel } from '../../Channel/Channel';
1719
import { channelInitialState } from '../../Channel/hooks/useChannelDataState';
1820
import * as MessageListPaginationHook from '../../Channel/hooks/useMessageListPagination';
1921
import { Chat } from '../../Chat/Chat';
22+
2023
import { MessageList } from '../MessageList';
21-
import { FlatList } from 'react-native';
2224

2325
describe('MessageList', () => {
2426
afterEach(cleanup);
@@ -577,9 +579,9 @@ describe('MessageList', () => {
577579
<Chat client={chatClient}>
578580
<Channel channel={channel}>
579581
<MessageList
580-
targetedMessage={targetedMessage}
581582
loadChannelAroundMessage={loadChannelAroundMessage}
582583
setTargetedMessage={setTargetedMessage}
584+
targetedMessage={targetedMessage}
583585
/>
584586
</Channel>
585587
</Chat>

package/src/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "Block User",
1616
"Cancel": "Cancel",
1717
"Cannot Flag Message": "Cannot Flag Message",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Consider how your comment might make others feel and be sure to follow our Community Guidelines",
2020
"Copy Message": "Copy Message",
2121
"Create Poll": "Create Poll",

package/src/i18n/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "Bloquear usuario",
1616
"Cancel": "Cancelar",
1717
"Cannot Flag Message": "No se puede reportar el mensaje",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera cómo tu comentario podría hacer sentir a los demás y asegúrate de seguir nuestras Normas de la Comunidad",
2020
"Copy Message": "Copiar mensaje",
2121
"Create Poll": "Crear encuesta",

package/src/i18n/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "Bloquer un utilisateur",
1616
"Cancel": "Annuler",
1717
"Cannot Flag Message": "Impossible de signaler le message",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considérez comment votre commentaire pourrait faire sentir les autres et assurez-vous de suivre nos directives communautaires",
2020
"Copy Message": "Copier le message",
2121
"Create Poll": "Créer un sondage",

package/src/i18n/he.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "חסום משתמש",
1616
"Cancel": "ביטול",
1717
"Cannot Flag Message": "סימון הודעה לא אפשרי",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "שקול איך התגובה שלך עשויה להשפיע על אחרים ווודא שאתה עוקב אחר ההנחיות של הקהילה שלנו",
2020
"Copy Message": "העתק/י הודעה",
2121
"Create Poll": "צור סקר",

package/src/i18n/hi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "उपयोगकर्ता को रोक देना, ब्लॉक यूजर",
1616
"Cancel": "रद्द करें",
1717
"Cannot Flag Message": "मैसेज फ्लैग नहीं किया जा सकता है",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "ध्यान दें कि आपका संदेश दूसरों को कैसा लगा सकता है और सुनिश्चित हों कि आप हमारी सामुदायिक अनुशासन का पालन कर रहे हैं",
2020
"Copy Message": "संदेश की प्रतिलिपि बनाएँ",
2121
"Create Poll": "सर्वेक्षण बनाएं",

package/src/i18n/it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "Blocca Utente",
1616
"Cancel": "Annulla",
1717
"Cannot Flag Message": "Impossibile Segnalare Messaggio",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera come il tuo commento potrebbe far sentire gli altri e assicurati di seguire le nostre Linee guida della community",
2020
"Copy Message": "Copia Messaggio",
2121
"Create Poll": "Crea sondaggio",

package/src/i18n/ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "ユーザをブロックする",
1616
"Cancel": "キャンセル",
1717
"Cannot Flag Message": "メッセージをフラグできません",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "あなたのコメントが他の人にどのように影響するか考え、必ずコミュニティガイドラインに従ってください",
2020
"Copy Message": "メッセージのコピー",
2121
"Create Poll": "アンケートを作成",

package/src/i18n/ko.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "사용자 차단",
1616
"Cancel": "취소",
1717
"Cannot Flag Message": "메세지를 플래그 할 수 없습니다",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "당신의 댓글이 다른 사람들에게 어떤 영향을 줄지 고려하고 반드시 우리의 커뮤니티 가이드라인을 따르십시오",
2020
"Copy Message": "메시지 복사",
2121
"Create Poll": "투표 생성",

package/src/i18n/nl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Block User": "Blokkeer Gebruiker",
1616
"Cancel": "Annuleer",
1717
"Cannot Flag Message": "Kan bericht niet rapporteren",
18-
"Cannot Mark Message as Unread": "",
18+
1919
"Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Denk na over hoe jouw opmerking anderen zou kunnen laten voelen en zorg ervoor dat je onze Community-richtlijnen volgt",
2020
"Copy Message": "Bericht kopiëren",
2121
"Create Poll": "Peiling aanmaken",

0 commit comments

Comments
 (0)