Skip to content

Commit

Permalink
Adjust example application
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Jan 24, 2025
1 parent c98db57 commit 0ce789b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
ThreadList,
ChatView,
} from 'stream-chat-react';
import 'stream-chat-react/css/v2/index.css';

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

type LocalAttachmentType = Record<string, unknown>;
type LocalChannelType = Record<string, unknown>;
Expand Down
6 changes: 6 additions & 0 deletions examples/vite/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ body,
height: 100%;
}

@layer stream, emoji-replacement;

@import url('stream-chat-react/css/v2/index.css') layer(stream);
// use in combination with useImageFlagEmojisOnWindows prop on Chat component
// @import url('stream-chat-react/css/v2/emoji-replacement.css') layer(emoji-replacement);

#root {
display: flex;
height: 100%;
Expand Down

0 comments on commit 0ce789b

Please sign in to comment.