Skip to content

Commit

Permalink
Revert "feat: add user setting for accessible trips by default"
Browse files Browse the repository at this point in the history
This reverts commit af5fd2f.
  • Loading branch information
miles-grant-ibigroup committed Nov 15, 2021
1 parent af5fd2f commit be63c21
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 46 deletions.
3 changes: 0 additions & 3 deletions i18n/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ _name: English
# Component-specific messages (e.g. button captions)
# are defined for each component under the 'components' category.
components:
A11yPrefs:
accessibilityRoutingByDefault: Prefer accessible trips by default
AccountSetupFinishPane:
message: You are ready to start planning your trips.
AfterSignInScreen:
Expand Down Expand Up @@ -95,7 +93,6 @@ components:
stopViewer: Stop Viewer
planATrip: "Plan a trip:"
ExistingAccountDisplay:
a11y: Accessibility
mainTitle: My settings
notifications: Notifications
places: Favorite places
Expand Down
6 changes: 0 additions & 6 deletions lib/actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const setitineraryExistence = createAction('SET_ITINERARY_EXISTENCE')

function createNewUser (auth0User) {
return {
accessibilityRoutingByDefault: false,
auth0UserId: auth0User.sub,
email: auth0User.email,
hasConsentedToTerms: false, // User must agree to terms.
Expand Down Expand Up @@ -101,11 +100,6 @@ function setUser (user, fetchTrips) {
if (fetchTrips) {
dispatch(fetchMonitoredTrips())
}

const { accessibilityRoutingByDefault } = user
if (accessibilityRoutingByDefault) {
dispatch(setQueryParam({wheelchair: accessibilityRoutingByDefault}))
}
}
}

Expand Down
30 changes: 0 additions & 30 deletions lib/components/user/a11y-prefs.js

This file was deleted.

6 changes: 0 additions & 6 deletions lib/components/user/existing-account-display.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import { FormattedMessage } from 'react-intl'

import A11yPrefs from './a11y-prefs'
import BackToTripPlanner from './back-to-trip-planner'
import DeleteUser from './delete-user'
import NotificationPrefsPane from './notification-prefs-pane'
Expand Down Expand Up @@ -29,11 +28,6 @@ const ExistingAccountDisplay = props => {
props,
title: <FormattedMessage id='components.ExistingAccountDisplay.notifications' />
},
{
pane: A11yPrefs,
props,
title: <FormattedMessage id='components.ExistingAccountDisplay.a11y' />
},
{
pane: TermsOfUsePane,
props: { ...props, disableCheckTerms: true },
Expand Down
1 change: 0 additions & 1 deletion lib/components/user/user-account-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import withLoggedInUserSupport from './with-logged-in-user-support'
// FIXME: validationSchema is not really directly used, so the text below is never shown.
// Also, this may be removed depending on fate of the Save button on this screen.
const validationSchema = yup.object({
accessibilityRoutingByDefault: yup.boolean(),
email: yup.string().email(),
hasConsentedToTerms: yup.boolean().oneOf([true], 'You must agree to the terms to continue.'),
notificationChannel: yup.string().oneOf(['email', 'sms', 'none']),
Expand Down

0 comments on commit be63c21

Please sign in to comment.