Skip to content

Commit b697eee

Browse files
chore(icon): renamed checkmark to checkSmall
1 parent 7a31da9 commit b697eee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/controls/checkbox/checkbox.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Animated, {interpolateColor, useAnimatedStyle, useSharedValue, withTiming
33
import {TouchableOpacity, type TouchableOpacityProps, type StyleProp, type ViewStyle, type ColorValue} from 'react-native';
44

55
import {useTheme} from '../../theme/useTheme.hook';
6-
import {CheckmarkIcon} from '../../icons/checkmark-icon/CheckmarkIcon.component';
6+
import {CheckSmallIcon} from '../../icons/check-small-icon/CheckSmallIcon.component';
77
import {DISABLED_OPACITY, ENABLED_OPACITY, getCheckboxFrameStyles, styles} from './checkbox.styles';
88

99
export interface CheckboxProps<T> extends Omit<TouchableOpacityProps, 'onPress'> {
@@ -61,7 +61,7 @@ export const Checkbox: <T extends any>(props: CheckboxProps<T>) => ReactElement
6161
const {checkboxFrame} = useMemo(() => getCheckboxFrameStyles(size), [size]);
6262

6363
const checkmarkSize = size * CHECKMARK_SIZE_COEFF;
64-
const icon = checkedIcon ?? <CheckmarkIcon size={checkmarkSize} />;
64+
const icon = checkedIcon ?? <CheckSmallIcon size={checkmarkSize} />;
6565

6666
const disabledColorStyles: ViewStyle = checked
6767
? {backgroundColor: surface.text, borderColor: surface.text}

src/icons/checkmark-icon/CheckmarkIcon.component.tsx renamed to src/icons/check-small-icon/CheckSmallIcon.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import type {IconProps} from '../icon-props';
77
const DEFAULT_SIZE = 24;
88
const DEFAULT_COLOR = '#ffffff';
99

10-
export const CheckmarkIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE}) => (
11-
<Svg viewBox="0 0 24 24" width={size} height={size}>
10+
export const CheckSmallIcon: React.FC<IconProps> = ({color = DEFAULT_COLOR, size = DEFAULT_SIZE}) => (
11+
<Svg viewBox="0 0 24 24" width={size} height={size} fill={'none'}>
1212
<Path fill={color} d={path} />
1313
</Svg>
1414
);

0 commit comments

Comments
 (0)