Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUT-19663 | LOCO | Service text is MORE cutoff after clicking to expend #823

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading