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 @@ -4,15 +4,13 @@ import { StyleSheet, View } from 'react-native';
import { CommandVariants } from 'stream-chat';

import { useTheme } from '../../contexts/themeContext/ThemeContext';
import { Flag, GiphyIcon, Lightning, Mute, Sound, UserAdd, UserDelete } from '../../icons';
import { Flag, GiphyIcon, Mute, Sound, UserAdd, UserDelete } from '../../icons';
import { Imgur } from '../../icons/Imgur';
import { Lightning } from '../../icons/Lightning';

export const SuggestionCommandIcon = ({ name }: { name: CommandVariants }) => {
const {
theme: {
semantics,
colors: { white },
},
theme: { semantics },
} = useTheme();

if (name === 'ban') {
Expand All @@ -30,7 +28,7 @@ export const SuggestionCommandIcon = ({ name }: { name: CommandVariants }) => {
} else if (name === 'unmute') {
return <Sound height={20} stroke={semantics.textSecondary} width={20} />;
} else {
return <Lightning fill={white} size={16} />;
return <Lightning fill={semantics.textSecondary} height={16} width={16} />;
}
};

Expand Down
4 changes: 2 additions & 2 deletions package/src/components/ui/GiphyChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useMessageComposer } from '../../contexts/messageInputContext/hooks/use
import { useTheme } from '../../contexts/themeContext/ThemeContext';
import { useStateStore } from '../../hooks/useStateStore';
import { Cross } from '../../icons/Cross';
import { NewLightning } from '../../icons/NewLightning';
import { Lightning } from '../../icons/Lightning';
import { primitives } from '../../theme';

const textComposerStateSelector = (state: TextComposerState) => ({
Expand All @@ -32,7 +32,7 @@ export const GiphyChip = () => {

return (
<View style={styles.container}>
<NewLightning fill={semantics.textInverse} height={16} width={16} />
<Lightning fill={semantics.textInverse} height={16} width={16} />
<Text style={styles.text}>{commandName}</Text>
<Pressable onPress={onPressHandler}>
<Cross stroke={semantics.textInverse} height={16} width={16} />
Expand Down
10 changes: 0 additions & 10 deletions package/src/icons/Archive.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions package/src/icons/ChatIcon.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions package/src/icons/DownloadCloud.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions package/src/icons/Error.tsx

This file was deleted.

12 changes: 4 additions & 8 deletions package/src/icons/Lightning.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import React from 'react';

import Svg, { Path } from 'react-native-svg';
import { Path, Svg } from 'react-native-svg';

import { IconProps } from './utils/base';

type Props = IconProps & {
size: number;
};

export const Lightning = ({ size = 32, ...rest }: Props) => (
<Svg height={size} viewBox={`0 0 ${size} ${size}`} width={size} {...rest}>
export const Lightning = ({ height, width, ...rest }: IconProps) => (
<Svg fill={'none'} height={height} viewBox={'0 0 12 12'} width={width} {...rest}>
<Path
d='M14.8522 28H13.5188L14.8522 18.6667H10.1855C9.01218 18.6667 9.74551 17.6667 9.77218 17.6267C11.4922 14.5867 14.0788 10.0533 17.5322 4H18.8655L17.5322 13.3333H22.2122C22.7455 13.3333 23.0388 13.5867 22.7455 14.2133C17.4788 23.4 14.8522 28 14.8522 28Z'
d='M8.2266 1.16648C8.524 0.279984 7.4007 -0.417073 6.7514 0.291481L1.73231 5.76855C1.21953 6.32815 1.60932 7.24205 2.37725 7.24205H4.79225C4.87431 7.24205 4.93956 7.3243 4.91215 7.41115L3.82717 10.8489C3.54697 11.7367 4.67246 12.4136 5.3123 11.7034L10.2732 6.1964C10.7789 5.6351 10.3876 4.72846 9.6232 4.72846H7.20825C7.1253 4.72846 7.0598 4.64444 7.0891 4.5571L8.2266 1.16648Z'
{...rest}
/>
</Svg>
Expand Down
12 changes: 0 additions & 12 deletions package/src/icons/MessageBubble.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions package/src/icons/NewLightning.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions package/src/icons/SendPoll.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions package/src/icons/UserAdmin.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions package/src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
export * from './utils/base';

export * from './Archive';
export * from './ArrowRight';
export * from './Audio';
export * from './Camera';
export * from './ChatIcon';
export * from './Check';
export * from './CheckAll';
export * from './CircleStop';
Expand All @@ -16,17 +14,14 @@ export * from './Delete';
export * from './DOC';
export * from './DOCX';
export * from './DownloadArrow';
export * from './DownloadCloud';
export * from './Edit';
export * from './Error';
export * from './Eye';
export * from './Flag';
export * from './Grid';
export * from './GenericFile';
export * from './GiphyIcon';
export * from './GiphyLightning';
export * from './HTML';
export * from './Lightning';
export * from './Loading';
export * from './Logo';
export * from './MD';
Expand Down Expand Up @@ -66,11 +61,9 @@ export * from './Video';
export * from './XLS';
export * from './XLSX';
export * from './ZIP';
export * from './MessageBubble';
export * from './MessageBubbleEmpty';
export * from './Reload';
export * from './PollThumbnail';
export * from './SendPoll';
export * from './UnreadIndicator';
export * from './FilePickerIcon';
export * from './CommandsIcon';
Expand Down