fix : Pas besoin de theming

This commit is contained in:
Yaël Perret
2026-09-01 16:45:11 +02:00
parent 6affbef244
commit d4246aa2c8
9 changed files with 23 additions and 72 deletions

View File

@@ -11,7 +11,10 @@ import {
type ViewStyle,
} from 'react-native';
import { useTheme } from '@/theme/useTheme';
import { colors, gradientDirection, gradients } from '@/theme/colors';
import { borderRadius } from '@/theme/spacing';
import { typography } from '@/theme/typography';
export type ThemeChipSelectedVariant = 'gradient' | 'accent';
@@ -46,8 +49,6 @@ export function ThemeChip({
testID,
accessibilityLabel,
}: ThemeChipProps) {
const { colors, gradients, gradientDirection, borderRadius, typography } = useTheme();
const resolvedValue = value ?? label;
const isGradient = selected && selectedVariant === 'gradient';
const showSelectedIcon = selected && (showCross ?? showRemoveIcon);