remove final usage of s.likeColor
This commit is contained in:
@@ -5,7 +5,6 @@ import Animated, {
|
|||||||
useReducedMotion,
|
useReducedMotion,
|
||||||
} from 'react-native-reanimated'
|
} from 'react-native-reanimated'
|
||||||
|
|
||||||
import {s} from '#/lib/styles'
|
|
||||||
import {useTheme} from '#/alf'
|
import {useTheme} from '#/alf'
|
||||||
import {
|
import {
|
||||||
Heart2_Filled_Stroke2_Corner0_Rounded as HeartIconFilled,
|
Heart2_Filled_Stroke2_Corner0_Rounded as HeartIconFilled,
|
||||||
@@ -86,7 +85,7 @@ export function AnimatedLikeIcon({
|
|||||||
{isLiked ? (
|
{isLiked ? (
|
||||||
<Animated.View
|
<Animated.View
|
||||||
entering={shouldAnimate ? keyframe.duration(300) : undefined}>
|
entering={shouldAnimate ? keyframe.duration(300) : undefined}>
|
||||||
<HeartIconFilled style={s.likeColor} width={size} />
|
<HeartIconFilled style={{color: t.palette.pink}} width={size} />
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
) : (
|
) : (
|
||||||
<HeartIconOutline
|
<HeartIconOutline
|
||||||
@@ -100,7 +99,7 @@ export function AnimatedLikeIcon({
|
|||||||
entering={circle1Keyframe.duration(300)}
|
entering={circle1Keyframe.duration(300)}
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
backgroundColor: s.likeColor.color,
|
backgroundColor: t.palette.pink,
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
width: size,
|
width: size,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import {useEffect, useRef} from 'react'
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {useReducedMotion} from 'react-native-reanimated'
|
import {useReducedMotion} from 'react-native-reanimated'
|
||||||
|
|
||||||
import {s} from '#/lib/styles'
|
|
||||||
import {useTheme} from '#/alf'
|
import {useTheme} from '#/alf'
|
||||||
import {
|
import {
|
||||||
Heart2_Filled_Stroke2_Corner0_Rounded as HeartIconFilled,
|
Heart2_Filled_Stroke2_Corner0_Rounded as HeartIconFilled,
|
||||||
@@ -74,7 +73,7 @@ export function AnimatedLikeIcon({
|
|||||||
{isLiked ? (
|
{isLiked ? (
|
||||||
// @ts-expect-error is div
|
// @ts-expect-error is div
|
||||||
<View ref={likeIconRef}>
|
<View ref={likeIconRef}>
|
||||||
<HeartIconFilled style={s.likeColor} width={size} />
|
<HeartIconFilled style={{color: t.palette.pink}} width={size} />
|
||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<HeartIconOutline
|
<HeartIconOutline
|
||||||
@@ -87,7 +86,7 @@ export function AnimatedLikeIcon({
|
|||||||
ref={circle1Ref}
|
ref={circle1Ref}
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
backgroundColor: s.likeColor.color,
|
backgroundColor: t.palette.pink,
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
width: size,
|
width: size,
|
||||||
|
|||||||
@@ -236,9 +236,6 @@ export const s = StyleSheet.create({
|
|||||||
green3: {color: colors.green3},
|
green3: {color: colors.green3},
|
||||||
green4: {color: colors.green4},
|
green4: {color: colors.green4},
|
||||||
green5: {color: colors.green5},
|
green5: {color: colors.green5},
|
||||||
|
|
||||||
brandBlue: {color: colors.brandBlue},
|
|
||||||
likeColor: {color: colors.like},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export function lh(
|
export function lh(
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ let NotificationFeedItem = ({
|
|||||||
<HeartIconFilled
|
<HeartIconFilled
|
||||||
size="xl"
|
size="xl"
|
||||||
style={[
|
style={[
|
||||||
s.likeColor,
|
{color: t.palette.pink},
|
||||||
// {position: 'relative', top: -4}
|
// {position: 'relative', top: -4}
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user