From e3e2831d116874fe8419d1423f29f0249c7f980b Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 17 Jan 2023 13:17:38 -0600 Subject: Rework repost icon to match line widths --- src/view/com/util/PostCtrls.tsx | 13 +++++++++---- src/view/lib/icons.tsx | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 7803c4799..0ca13b62f 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -11,7 +11,12 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import ReactNativeHapticFeedback from 'react-native-haptic-feedback' import {Text} from './text/Text' import {PostDropdownBtn} from './forms/DropdownButton' -import {HeartIcon, HeartIconSolid, CommentBottomArrow} from '../../lib/icons' +import { + HeartIcon, + HeartIconSolid, + RepostIcon, + CommentBottomArrow, +} from '../../lib/icons' import {s, colors} from '../../lib/styles' import {useTheme} from '../../lib/ThemeContext' import {useAnimatedValue} from '../../lib/hooks/useAnimatedValue' @@ -143,12 +148,12 @@ export function PostCtrls(opts: PostCtrlsOpts) { onPress={onPressToggleRepostWrapper} style={styles.ctrl}> - {typeof opts.repostCount !== 'undefined' ? ( diff --git a/src/view/lib/icons.tsx b/src/view/lib/icons.tsx index e972a79d1..51299b3e4 100644 --- a/src/view/lib/icons.tsx +++ b/src/view/lib/icons.tsx @@ -225,6 +225,27 @@ export function UserGroupIcon({ ) } +export function RepostIcon({ + style, + size = 24, + strokeWidth = 1.5, +}: { + style?: StyleProp + size?: string | number + strokeWidth: number +}) { + return ( + + + + ) +} + // Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. export function HeartIcon({ style, -- cgit 1.4.1