fix : Pas besoin de theming
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user