Skip to content

Commit

Permalink
Update Button.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind3566 authored Nov 19, 2024
1 parent 10e2c15 commit a9b2530
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ export type Props = $Omit<React.ComponentProps<typeof Surface>, 'mode'> & {
* Specifies the largest possible scale a text font can reach.
*/
maxFontSizeMultiplier?: number;
/**
* Label text number Of Lines of the button.
*/
noOfLines?: number;
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
/**
* Style for the button text.
Expand Down Expand Up @@ -190,7 +186,6 @@ const Button = (
onPressOut,
onLongPress,
delayLongPress,
noOfLines,
style,
theme: themeOverrides,
uppercase: uppercaseProp,
Expand Down Expand Up @@ -271,7 +266,6 @@ const Button = (

const borderRadius = (isV3 ? 5 : 1) * roundness;
const iconSize = isV3 ? 18 : 16;
const numberOfLines = noOfLines ? 1 : noOfLines;

const { backgroundColor, borderColor, textColor, borderWidth } =
getButtonColors({
Expand Down Expand Up @@ -389,7 +383,7 @@ const Button = (
<Text
variant="labelLarge"
selectable={false}
numberOfLines={numberOfLines}
numberOfLines={1}
testID={`${testID}-text`}
style={[
styles.label,
Expand Down

0 comments on commit a9b2530

Please sign in to comment.