Skip to content

Commit

Permalink
remove number of lines limit in single display (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel-weiss authored Apr 15, 2024
1 parent e8cdb9f commit eea848a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import showPriceBasedOnAccount from '../../../../../../services/showPriceBasedOn

const FARE_POPUP = 'farePopup';

const ServiceCard = ({ service, withBorder, testID }) => {
const ServiceCard = ({
service, withBorder, testID, descriptionNumberOfLines,
}) => {
const { businessAccountId } = useContext(RidePageContext);
const theme = useContext(ThemeContext);
const {
Expand Down Expand Up @@ -90,7 +92,7 @@ const ServiceCard = ({ service, withBorder, testID }) => {
};

const getDescription = forFutureRidesView => (
<Description style={{ ...(forFutureRidesView && { width: '60%' }) }} numberOfLines={2}>
<Description style={{ ...(forFutureRidesView && { width: '60%' }) }} numberOfLines={descriptionNumberOfLines || null}>
{(service.description || '')}
</Description>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const ServiceOptions = () => {
<ServiceCard
withBorder
service={option}
key={option.name}
key={option.id}
descriptionNumberOfLines={2}
/>
))
}
Expand Down

0 comments on commit eea848a

Please sign in to comment.