Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {
IconArrowRight,
Button,
DialogAnchor,
IconArrowRotateRightLeftRepeatRefresh,
IconRefresh,
IconArrowUp,
IconCheckmark2,
IconCircleInfoTooltip,
IconCheckmark,
IconInfo,
IconClock,
IconCrossMedium,
IconExclamationCircle,
IconXmark,
IconExclamationMark,
IconExclamationTriangle,
IconPlusSmall,
NumericInput,
Expand Down Expand Up @@ -50,10 +50,10 @@ const clamp = (value: number, min: number, max: number) => {
const severityIcons: Partial<
Record<NotificationSeverity, React.ComponentType<{ className?: string }>>
> = {
error: IconExclamationCircle,
info: IconCircleInfoTooltip,
loading: IconArrowRotateRightLeftRepeatRefresh,
success: IconCheckmark2,
error: IconExclamationMark,
info: IconInfo,
loading: IconRefresh,
success: IconCheckmark,
warning: IconExclamationTriangle,
};

Expand Down Expand Up @@ -148,7 +148,7 @@ const NotificationChipList = ({
size='xs'
variant='secondary'
>
<IconCrossMedium />
<IconXmark />
</Button>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions examples/vite/src/AppSettings/AppSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
ChatViewSelectorButton,
GlobalModal,
IconBubble3ChatMessage,
IconBellNotification,
IconEmojiSmile,
IconBell,
IconEmoji,
IconLightBulbSimple,
IconSettingsGear2,
} from 'stream-chat-react';
Expand All @@ -18,9 +18,9 @@ import { appSettingsStore, useAppSettingsState } from './state';
type TabId = 'notifications' | 'reactions' | 'sidebar';

const tabConfig: { Icon: ComponentType; id: TabId; title: string }[] = [
{ Icon: IconBellNotification, id: 'notifications', title: 'Notifications' },
{ Icon: IconBell, id: 'notifications', title: 'Notifications' },
{ Icon: IconBubble3ChatMessage, id: 'sidebar', title: 'Sidebar' },
{ Icon: IconEmojiSmile, id: 'reactions', title: 'Reactions' },
{ Icon: IconEmoji, id: 'reactions', title: 'Reactions' },
];

const SidebarThemeToggle = ({ iconOnly = true }: { iconOnly?: boolean }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Attachment/Geolocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
import type { Coords, SharedLocationResponse } from 'stream-chat';
import { useChatContext, useTranslationContext } from '../../context';
import { ExternalLinkIcon } from './icons';
import { IconMapPin } from '../Icons';
import { IconLocation } from '../Icons';
import { Button } from '../Button';

export type GeolocationMapProps = Coords;
Expand Down Expand Up @@ -105,7 +105,7 @@ const DefaultGeolocationAttachmentMapPlaceholder = ({
className='str-chat__message-attachment-geolocation__placeholder'
data-testid='geolocation-attachment-map-placeholder'
>
<IconMapPin />
<IconLocation />
<a
className='str-chat__message-attachment-geolocation__placeholder-link'
href={`https://maps.google.com?q=${[location.latitude, location.longitude].join()}`}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Attachment/LinkPreview/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useChannelStateContext } from '../../../context/ChannelStateContext';
import type { Attachment } from 'stream-chat';
import type { RenderAttachmentProps } from '../utils';
import type { Dimensions } from '../../../types/types';
import { IconChainLink } from '../../Icons';
import { IconLink } from '../../Icons';
import { UnableToRenderCard } from './UnableToRenderCard';
import clsx from 'clsx';

Expand Down Expand Up @@ -74,7 +74,7 @@ const CardContent = (props: CardContentProps) => {
className='str-chat__message-attachment-card--source-link'
data-testid='card-source-link'
>
<IconChainLink />
<IconLink />
<div className='str-chat__message-attachment-card--url'>{url}</div>
</div>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Attachment/LinkPreview/CardAudio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useStateStore } from '../../../store';
import { PlayButton } from '../../Button';
import type { AudioProps } from '../Audio';
import React from 'react';
import { IconChainLink } from '../../Icons';
import { IconLink } from '../../Icons';
import { SafeAnchor } from '../../SafeAnchor';
import type { CardProps } from './Card';

Expand All @@ -26,7 +26,7 @@ const SourceLink = ({
className='str-chat__message-attachment-card--source-link'
data-testid='card-source-link'
>
<IconChainLink />
<IconLink />
<SafeAnchor
className='str-chat__message-attachment-card--url'
href={url}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Attachment/ModalGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Gallery as DefaultGallery, GalleryUI } from '../Gallery';
import { LoadingIndicator } from '../Loading';
import { GlobalModal } from '../Modal';
import { useComponentContext, useTranslationContext } from '../../context';
import { IconArrowRotateClockwise } from '../Icons';
import { IconRetry } from '../Icons';
import { VideoThumbnail } from '../VideoPlayer/VideoThumbnail';

const MAX_VISIBLE_THUMBNAILS = 4;
Expand Down Expand Up @@ -216,7 +216,7 @@ const ThumbnailButton = ({
data-testid='str-chat__modal-gallery__image-load-failed-overlay'
>
<div className='str-chat__modal-gallery__image-retry-indicator'>
<IconArrowRotateClockwise />
<IconRetry />
</div>
</div>
)}
Expand Down
Loading
Loading