Skip to content

Commit 6657138

Browse files
fix: archive icon name and export, swipeable usage in sample app (#2913)
* fix: icon name and export, swipeable usage in sample app * fix: lint issues * fix: typo --------- Co-authored-by: Ivan Sekovanikj <[email protected]>
1 parent c649714 commit 6657138

File tree

7 files changed

+9
-13
lines changed

7 files changed

+9
-13
lines changed

examples/SampleApp/src/ChatUsers.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { UserResponse } from 'stream-chat';
22
import { StreamChatGenerics } from './types';
33

44
export const USER_TOKENS: Record<string, string> = {
5-
luke_skywalker:
6-
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoibHVrZV9za3l3YWxrZXIifQ.kFSLHRB5X62t0Zlc7nwczWUfsQMwfkpylC6jCUZ6Mc0',
75
e2etest1:
86
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZTJldGVzdDEifQ.XlQOw8nl7fFzHoBkEiTcYGkNo5r7EBYA40LABGOk4hc',
97
e2etest2:
@@ -30,9 +28,6 @@ export const USER_TOKENS: Record<string, string> = {
3028
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoicm9kb2xwaGUifQ.tLl-I8ADBhTKB-x5FB9jK4-am0dELLXgydM6VN9rTL8',
3129
};
3230
export const USERS: Record<string, UserResponse<StreamChatGenerics>> = {
33-
luke_skywalker: {
34-
id: 'luke_skywalker',
35-
},
3631
neil: {
3732
id: 'neil',
3833
image: 'https://ca.slack-edge.com/T02RM6X6B-U01173D1D5J-0dead6eea6ea-512',

examples/SampleApp/src/components/ChannelInfoOverlay.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
import { useAppOverlayContext } from '../context/AppOverlayContext';
3434
import { useBottomSheetOverlayContext } from '../context/BottomSheetOverlayContext';
3535
import { useChannelInfoOverlayContext } from '../context/ChannelInfoOverlayContext';
36-
import { Archieve } from '../icons/Archieve';
36+
import { Archive } from '../icons/Archive';
3737
import { Pin } from '../icons/Pin';
3838

3939
dayjs.extend(relativeTime);
@@ -422,10 +422,10 @@ export const ChannelInfoOverlay = (props: ChannelInfoOverlayProps) => {
422422
]}
423423
>
424424
<View style={styles.rowInner}>
425-
<Archieve height={24} width={24} />
425+
<Archive height={24} width={24} />
426426
</View>
427427
<Text style={[styles.rowText, { color: black }]}>
428-
{membership?.archived_at ? 'Unarchieve' : 'Archieve'}
428+
{membership?.archived_at ? 'Unarchive' : 'Archive'}
429429
</Text>
430430
</View>
431431
</TapGestureHandler>

examples/SampleApp/src/components/ChannelPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { StyleSheet, View } from 'react-native';
33
import { useNavigation } from '@react-navigation/native';
44
import { RectButton } from 'react-native-gesture-handler';
5-
import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
5+
import Swipeable from 'react-native-gesture-handler/Swipeable';
66
import {
77
ChannelPreviewMessenger,
88
ChannelPreviewMessengerProps,

examples/SampleApp/src/icons/Archieve.tsx renamed to examples/SampleApp/src/icons/Archive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useTheme } from 'stream-chat-react-native';
44

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

7-
export const Archieve: React.FC<IconProps> = ({ height = 512, width = 512 }) => {
7+
export const Archive: React.FC<IconProps> = ({ height = 512, width = 512 }) => {
88
const {
99
theme: {
1010
colors: { grey },

package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import { StyleSheet, TouchableOpacity, View } from 'react-native';
2+
import { StyleSheet, View } from 'react-native';
3+
import { TouchableOpacity } from 'react-native-gesture-handler';
34

45
import { ChannelAvatar } from './ChannelAvatar';
56
import type { ChannelPreviewProps } from './ChannelPreview';

package/src/icons/Archieve.tsx renamed to package/src/icons/Archive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Svg, { Path } from 'react-native-svg';
33

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

6-
export const Archieve: React.FC<IconProps> = ({ height = 512, width = 512, ...rest }) => (
6+
export const Archive: React.FC<IconProps> = ({ height = 512, width = 512, ...rest }) => (
77
<Svg height={height} viewBox={'0 0 512 512'} width={width} {...rest}>
88
<Path d='M32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64C0 46.3 14.3 32 32 32zm0 128l448 0 0 256c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-256zm128 80c0 8.8 7.2 16 16 16l160 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-160 0c-8.8 0-16 7.2-16 16z' />
99
</Svg>

package/src/icons/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export * from './utils/base';
22

3-
export * from './Archieve';
3+
export * from './Archive';
44
export * from './ArrowRight';
55
export * from './ArrowLeft';
66
export * from './ArrowUp';

0 commit comments

Comments
 (0)