Skip to content

Commit

Permalink
fix(social-messenger-ts): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jul 15, 2024
1 parent c3d253a commit 464d113
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getCleanImage } from '../../assets';
import './AvatarGroup.css';
import StreamLogo from '../../assets/ProfilePic_LogoMark_GrdntOnWt.png';

const AvatarSubgroup = (props: ComponentProps<'div'>) => <div {...props} className={clsx('avatar-subgroup', {['avatar-subgroup--split']: React.Children.toArray(props.children).length > 1})}/>
const AvatarSubgroup = (props: ComponentProps<'div'>) => <div {...props} className={clsx('avatar-subgroup', {'avatar-subgroup--split': React.Children.toArray(props.children).length > 1})}/>

export const AvatarGroup = ({ members }: { members: ChannelMemberResponse[] }) => {
let content = <Avatar image={StreamLogo} />;
Expand Down
19 changes: 6 additions & 13 deletions social-messenger-ts/src/components/ChannelInner/ChannelInner.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import React from 'react';
import { logChatPromiseExecution } from 'stream-chat';
import {
MessageList,
MessageInput,
MessageToSend,
Window,
useChannelActionContext,
Thread,
} from 'stream-chat-react';
import { encodeToMp3 } from 'stream-chat-react/mp3-encoder';
import {logChatPromiseExecution} from 'stream-chat';
import {MessageInput, MessageList, Thread, useChannelActionContext, Window,} from 'stream-chat-react';
import {encodeToMp3} from 'stream-chat-react/mp3-encoder';

import { MessagingChannelHeader } from '../../components';
import { useGiphyContext } from '../../context';
import type { StreamChatGenerics } from '../../types';
import {MessagingChannelHeader} from '../../components';
import {useGiphyContext} from '../../context';
import type {StreamChatGenerics} from '../../types';
import {MessageInputProps} from "stream-chat-react/dist/components/MessageInput/MessageInput";

export type ChannelInnerProps = {
Expand Down

0 comments on commit 464d113

Please sign in to comment.