Skip to content

Commit 3442e1f

Browse files
Adjust example application
1 parent 9e43ca8 commit 3442e1f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/vite/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
ThreadList,
1515
ChatView,
1616
} from 'stream-chat-react';
17-
import 'stream-chat-react/css/v2/index.css';
1817

1918
const params = (new Proxy(new URLSearchParams(window.location.search), {
2019
get: (searchParams, property) => searchParams.get(property as string),
@@ -38,7 +37,7 @@ const filters: ChannelFilters = {
3837
archived: false,
3938
};
4039
const options: ChannelOptions = { limit: 5, presence: true, state: true };
41-
const sort: ChannelSort = [{ pinned_at: 1 }, { last_message_at: -1 }, { updated_at: -1 }];
40+
const sort: ChannelSort = { pinned_at: 1, last_message_at: -1, updated_at: -1 };
4241

4342
type LocalAttachmentType = Record<string, unknown>;
4443
type LocalChannelType = Record<string, unknown>;

examples/vite/src/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ body,
1212
height: 100%;
1313
}
1414

15+
@layer stream, emoji-replacement;
16+
17+
@import url('stream-chat-react/css/v2/index.css') layer(stream);
18+
// use in combination with useImageFlagEmojisOnWindows prop on Chat component
19+
// @import url('stream-chat-react/css/v2/emoji-replacement.css') layer(emoji-replacement);
20+
1521
#root {
1622
display: flex;
1723
height: 100%;

0 commit comments

Comments
 (0)