Skip to content

Commit 82ea9d5

Browse files
committed
Small fixes
1 parent b21cf54 commit 82ea9d5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/components/chip/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ export type ChipPropTypes = ViewProps & TouchableOpacityProps & {
5555
* Main Chip text
5656
*/
5757
label?: string;
58-
/**
59-
* Color of the label.
60-
*/
61-
labelColor?: string;
6258
/**
6359
* Label's style
6460
*/
@@ -135,7 +131,6 @@ const Chip: React.FC<ChipPropTypes> = ({
135131
iconStyle,
136132
label,
137133
labelStyle,
138-
labelColor,
139134
onPress,
140135
resetSpacings,
141136
size,
@@ -207,14 +202,13 @@ const Chip: React.FC<ChipPropTypes> = ({
207202
text90M
208203
numberOfLines={1}
209204
// @ts-ignore
210-
tintColor={labelColor}
211205
style={[styles.label, getMargins('label'), labelStyle]}
212206
testID={`${testID}.label`}
213207
>
214-
{label}
208+
{!!label && label}
215209
</Text>
216210
);
217-
}, [label, labelColor, labelStyle]);
211+
}, [label, labelStyle]);
218212

219213
const getMargins = useCallback((element: string): object | undefined => {
220214
if (!resetSpacings) {

0 commit comments

Comments
 (0)