Skip to content

Commit

Permalink
fix(watch-card): remove gradient on card
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangvu12 committed Sep 7, 2024
1 parent 4737793 commit 292d95b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/screens/anime/components/watch-card.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { useNavigation } from '@react-navigation/native';
import { LinearGradient } from 'expo-linear-gradient';
import { styled } from 'nativewind';
import React from 'react';

import { copyToClipboard } from '@/core';
import type { FragmentType } from '@/gql';
import { graphql, useFragment } from '@/gql';
import { addAlpha, colors, Image, Text, View } from '@/ui';
import { Image, Text, View } from '@/ui';
import Pressable from '@/ui/core/pressable';
import MediaUnitStats from '@/ui/media-unit-stats';

Expand All @@ -33,14 +31,6 @@ interface WatchCardProps {
};
}

const linearGradientColors = [
'#00000000',
addAlpha(colors.thunder[950], 0.4),
addAlpha(colors.thunder[950], 0.8),
];

const SLinearGradient = styled(LinearGradient);

export const WATCH_CARD_WIDTH = 160;

const WatchCard: React.FC<WatchCardProps> = ({
Expand Down Expand Up @@ -71,11 +61,6 @@ const WatchCard: React.FC<WatchCardProps> = ({
contentFit="cover"
className="aspect-video w-full rounded-md"
/>

<SLinearGradient
colors={linearGradientColors}
className="absolute top-0 left-0 right-0 bottom-0"
/>
</Pressable>

<Pressable onPress={handleNavigate} android_ripple={null}>
Expand Down

0 comments on commit 292d95b

Please sign in to comment.