diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-31 15:13:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 13:13:01 +0100 |
commit | 455937dd0f7248033f412f53f7d2be89978aa4f2 (patch) | |
tree | 9749d2631a4b0c17ceaadea87766eb6ee171947e /src/view/com/util/LoadingPlaceholder.tsx | |
parent | 05b55c1966b12f4849235dc794455bc60c5753c1 (diff) | |
download | voidsky-455937dd0f7248033f412f53f7d2be89978aa4f2.tar.zst |
Use new icons on notifications screen (#4299)
* use new icons on notif screen * replace placeholder icon too * cull unused legacy icons
Diffstat (limited to 'src/view/com/util/LoadingPlaceholder.tsx')
-rw-r--r-- | src/view/com/util/LoadingPlaceholder.tsx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx index be67d10cb..adeefd4dd 100644 --- a/src/view/com/util/LoadingPlaceholder.tsx +++ b/src/view/com/util/LoadingPlaceholder.tsx @@ -8,12 +8,14 @@ import { } from 'react-native' import {usePalette} from 'lib/hooks/usePalette' -import {HeartIconSolid} from 'lib/icons' import {s} from 'lib/styles' import {useTheme} from 'lib/ThemeContext' -import {useTheme as useTheme_NEW} from '#/alf' +import {atoms as a, useTheme as useTheme_NEW} from '#/alf' import {Bubble_Stroke2_Corner2_Rounded as Bubble} from '#/components/icons/Bubble' -import {Heart2_Stroke2_Corner0_Rounded as HeartIconOutline} from '#/components/icons/Heart2' +import { + Heart2_Filled_Stroke2_Corner0_Rounded as HeartIconFilled, + Heart2_Stroke2_Corner0_Rounded as HeartIconOutline, +} from '#/components/icons/Heart2' import {Repost_Stroke2_Corner2_Rounded as Repost} from '#/components/icons/Repost' import hairlineWidth = StyleSheet.hairlineWidth @@ -139,14 +141,14 @@ export function NotificationLoadingPlaceholder({ const pal = usePalette('default') return ( <View style={[styles.notification, pal.view, style]}> - <View style={{paddingLeft: 30, paddingRight: 10}}> - <HeartIconSolid - style={{color: pal.colors.backgroundLight} as ViewStyle} - size={30} + <View style={[{width: 70}, a.align_end, a.pr_sm, a.pt_2xs]}> + <HeartIconFilled + size="xl" + style={{color: pal.colors.backgroundLight}} /> </View> <View style={{flex: 1}}> - <View style={[s.flexRow, s.mb10]}> + <View style={[a.flex_row, s.mb10]}> <LoadingPlaceholder width={30} height={30} |