Skip to content

Commit

Permalink
fix: UU for UsedAccessValidityHeader (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosvik authored Oct 25, 2021
1 parent 51d25e6 commit 7a600c6
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type Props = {
function UsedAccessValidityHeader(props: Props) {
const styles = useStyles();
const {t, language} = useTranslation();
const usedAccessValidityText = getUsedAccessValidityText(props, t, language);

return (
<View style={styles.validityHeader}>
Expand All @@ -34,13 +35,15 @@ function UsedAccessValidityHeader(props: Props) {
<ThemeText
style={styles.validityText}
type="body__secondary"
accessibilityHint={
accessibilityLabel={
!props.isInspectable
? t(TicketTexts.ticketInfo.noInspectionIconA11yLabel)
? usedAccessValidityText +
', ' +
t(TicketTexts.ticketInfo.noInspectionIconA11yLabel)
: undefined
}
>
{getUsedAccessValidityText(props, t, language)}
{usedAccessValidityText}
</ThemeText>
</View>
</View>
Expand Down

0 comments on commit 7a600c6

Please sign in to comment.