Skip to content

Commit ad0dbc8

Browse files
committed
fix: lint issues
1 parent 52ef753 commit ad0dbc8

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { useChatContext } from '../../../contexts/chatContext/ChatContext';
88
*
99
* @returns {boolean} e.g., true
1010
*/
11-
export const useChannelPreviewDisplayPresence = (
12-
channel: Channel,
13-
) => {
11+
export const useChannelPreviewDisplayPresence = (channel: Channel) => {
1412
const { client } = useChatContext();
1513
const members = channel.state.members;
1614
const membersCount = Object.keys(members).length;

package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ import type { Channel } from 'stream-chat';
44

55
import { useChatContext } from '../../../contexts/chatContext/ChatContext';
66

7-
87
const defaultMuteStatus = {
98
createdAt: null,
109
expiresAt: null,
1110
muted: false,
1211
};
1312

14-
export const useIsChannelMuted =(
15-
channel: Channel,
16-
) => {
13+
export const useIsChannelMuted = (channel: Channel) => {
1714
const { client } = useChatContext();
1815

1916
const [muted, setMuted] = useState(() => channel.muteStatus());

package/src/hooks/useTranslatedMessage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { useTranslationContext } from '../contexts/translationContext/Translatio
44

55
type TranslationKey = `${TranslationLanguages}_text`;
66

7-
export const useTranslatedMessage = (
8-
message?: MessageResponse | FormatMessageResponse,
9-
) => {
7+
export const useTranslatedMessage = (message?: MessageResponse | FormatMessageResponse) => {
108
const { userLanguage } = useTranslationContext();
119

1210
const translationKey: TranslationKey = `${userLanguage}_text`;

0 commit comments

Comments
 (0)