Skip to content

Commit e3c2d29

Browse files
Other ESLint fixes
1 parent 15ef32f commit e3c2d29

File tree

26 files changed

+58
-59
lines changed

26 files changed

+58
-59
lines changed

src/components/Attachment/AttachmentContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export const VoiceRecordingContainer = <
250250
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
251251
>({
252252
attachment,
253-
VoiceRecording = DefaultVoiceRecording,
254253
isQuoted,
254+
VoiceRecording = DefaultVoiceRecording,
255255
}: RenderAttachmentProps<StreamChatGenerics>) => (
256256
<AttachmentWithinContainer attachment={attachment} componentType='voiceRecording'>
257257
<div className='str-chat__attachment'>

src/components/Channel/hooks/useCreateChannelStateContext.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ export const useCreateChannelStateContext = <
1919
channel,
2020
channelCapabilitiesArray = [],
2121
channelConfig,
22+
channelUnreadUiState,
2223
debounceURLEnrichmentMs,
2324
dragAndDropWindow,
2425
enrichURLForPreview,
25-
giphyVersion,
2626
error,
2727
findURLFn,
28+
giphyVersion,
2829
hasMore,
2930
hasMoreNewer,
30-
imageAttachmentSizeHandler,
31-
suppressAutoscroll,
3231
highlightedMessageId,
32+
imageAttachmentSizeHandler,
3333
loading,
3434
loadingMore,
3535
maxNumberOfFiles,
@@ -44,14 +44,14 @@ export const useCreateChannelStateContext = <
4444
read = {},
4545
shouldGenerateVideoThumbnail,
4646
skipMessageDataMemoization,
47+
suppressAutoscroll,
4748
thread,
4849
threadHasMore,
4950
threadLoadingMore,
5051
threadMessages = [],
51-
channelUnreadUiState,
5252
videoAttachmentSizeHandler,
53-
watcherCount,
5453
watcher_count,
54+
watcherCount,
5555
watchers,
5656
} = value;
5757

src/components/ChannelHeader/ChannelHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export const ChannelHeader = <
3434
) => {
3535
const {
3636
Avatar = DefaultAvatar,
37-
MenuIcon = DefaultMenuIcon,
3837
image: overrideImage,
3938
live,
39+
MenuIcon = DefaultMenuIcon,
4040
title: overrideTitle,
4141
} = props;
4242

src/components/ChannelList/ChannelList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,18 @@ const UnMemoizedChannelList = <SCG extends DefaultStreamChatGenerics = DefaultSt
158158
) => {
159159
const {
160160
additionalChannelSearchProps,
161-
Avatar = DefaultAvatar,
162161
allowNewMessagesFromUnfilteredChannels = true,
162+
Avatar = DefaultAvatar,
163163
channelRenderFilterFn,
164164
ChannelSearch = DefaultChannelSearch,
165165
customActiveChannel,
166166
customQueryChannels,
167167
EmptyStateIndicator = DefaultEmptyStateIndicator,
168168
filters = {},
169169
getLatestMessagePreview,
170+
List = ChannelListMessenger,
170171
LoadingErrorIndicator = NullComponent,
171172
LoadingIndicator = LoadingChannels,
172-
List = ChannelListMessenger,
173173
lockChannelOrder = false,
174174
onAddedToChannel,
175175
onChannelDeleted,

src/components/ChannelList/hooks/useSelectedChannelState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export function useSelectedChannelState<SCG extends ExtendableGenerics, O>(_: {
1717
}): O | undefined;
1818
export function useSelectedChannelState<SCG extends ExtendableGenerics, O>({
1919
channel,
20-
stateChangeEventKeys = ['all'],
2120
selector,
21+
stateChangeEventKeys = ['all'],
2222
}: {
2323
selector: (channel: Channel<SCG>) => O;
2424
channel?: Channel<SCG>;

src/components/ChannelPreview/ChannelPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ export const ChannelPreview = <
7878
) => {
7979
const {
8080
channel,
81-
Preview = ChannelPreviewMessenger,
8281
channelUpdateCount,
8382
getLatestMessagePreview = defaultGetLatestMessagePreview,
83+
Preview = ChannelPreviewMessenger,
8484
} = props;
8585
const {
8686
channel: activeChannel,

src/components/ChannelSearch/ChannelSearch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ const UnMemoizedChannelSearch = <
4444
SearchBar = DefaultSearchBar,
4545
SearchEmpty,
4646
SearchInput = DefaultSearchInput,
47-
SearchLoading,
4847
SearchInputIcon,
48+
SearchLoading,
4949
SearchResultItem,
50-
SearchResultsList,
5150
SearchResultsHeader,
51+
SearchResultsList,
5252
...channelSearchParams
5353
} = props;
5454

src/components/ChannelSearch/SearchResults.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ export const SearchResults = <
179179
const {
180180
popupResults,
181181
results,
182-
searching,
183182
SearchEmpty = DefaultSearchEmpty,
184-
SearchResultsHeader = DefaultSearchResultsHeader,
183+
searching,
185184
SearchLoading,
186185
SearchResultItem = DefaultSearchResultItem,
186+
SearchResultsHeader = DefaultSearchResultsHeader,
187187
SearchResultsList = DefaultSearchResultsList,
188188
selectResult,
189189
} = props;

src/components/EventComponent/EventComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const UnMemoizedEventComponent = <
2626
>(
2727
props: EventComponentProps<StreamChatGenerics>,
2828
) => {
29-
const { calendar, calendarFormats, format, Avatar = DefaultAvatar, message } = props;
29+
const { Avatar = DefaultAvatar, calendar, calendarFormats, format, message } = props;
3030

3131
const { t, tDateTimeParser } = useTranslationContext('EventComponent');
3232
const { created_at = '', event, text, type } = message;

src/components/Gallery/Image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ImageComponent = <
3636
>(
3737
props: ImageProps<StreamChatGenerics>,
3838
) => {
39-
const { dimensions = {}, fallback, image_url, thumb_url, innerRef, previewUrl, style } = props;
39+
const { dimensions = {}, fallback, image_url, innerRef, previewUrl, style, thumb_url } = props;
4040

4141
const [modalIsOpen, setModalIsOpen] = useState(false);
4242
const { BaseImage = DefaultBaseImage, ModalGallery = DefaultModalGallery } =

0 commit comments

Comments
 (0)