Skip to content

Commit

Permalink
Added selector icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzaizzat committed Apr 29, 2024
1 parent 3608b11 commit 35e47fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/mobile/src/components/AnimatedRefreshIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useCallback } from 'react';
import { ViewProps } from 'react-native';
import { RefreshIcon } from 'src/icons/RefreshIcon';

import { IconContainer } from '~/components/IconContainer';
Expand All @@ -9,13 +10,15 @@ type AnimatedRefreshIconProps = {
isSyncing: boolean;
eventElementId: string;
eventName: string;
style?: ViewProps['style'];
};

export function AnimatedRefreshIcon({
onSync,
isSyncing,
eventElementId,
eventName,
style,
}: AnimatedRefreshIconProps) {
const handleSync = useCallback(async () => {
if (isSyncing) return;
Expand All @@ -30,7 +33,7 @@ export function AnimatedRefreshIcon({
eventElementId={eventElementId}
eventName={eventName}
eventContext={contexts.Posts}
style={{ opacity: isSyncing ? 0.3 : 1 }}
style={[{ opacity: isSyncing ? 0.3 : 1 }, style]}
/>
);
}
9 changes: 9 additions & 0 deletions apps/mobile/src/icons/CheckIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Svg, { Path, SvgProps } from 'react-native-svg';

export function CheckIcon(props: SvgProps) {
return (
<Svg width={16} height={15} fill="none" {...props}>
<Path stroke="#FEFEFE" strokeMiterlimit={10} strokeWidth={0.9} d="m5.6 7 1.8 1.8 3-3" />
</Svg>
);
}
1 change: 0 additions & 1 deletion apps/mobile/src/icons/CheckboxIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function CheckboxIcon(props: SvgProps) {
return (
<Svg width={18} height={18} viewBox="0 0 18 18" fill="none" {...props}>
<Path d="M5 8.5l3 3 5-5" stroke={stroke} strokeMiterlimit={10} />
<Path stroke={stroke} d="M0.5 0.5H17.5V17.5H0.5z" />
</Svg>
);
}

0 comments on commit 35e47fc

Please sign in to comment.