Skip to content

Commit

Permalink
refactor(AdvancedSettingsPanel): Remove unused ui link
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Dec 11, 2024
1 parent cf9d231 commit 4a406cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ components:
mobilityLimitations: "Handicaps moteurs : "
planTripDescription: >-
Vous pouvez rechercher des trajets adaptés au profil mobilité des
personnes que vous accompagnez. Pour ajouter des personnes
accompagnatrices, allez dans <manageLink>Préférences</manageLink>.
personnes que vous accompagnez.
visionLimitations: "Handicaps visuels : "
dropdownLabel: "Profil à utiliser :"
intro: >-
Expand Down
12 changes: 1 addition & 11 deletions lib/components/form/advanced-settings-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import { ComponentContext } from '../../util/contexts'
import { generateModeSettingValues } from '../../util/api'
import { getDependentName } from '../../util/user'
import { User } from '../user/types'
import Link from '../util/link'

import {
addCustomSettingLabels,
Expand Down Expand Up @@ -301,16 +300,7 @@ const AdvancedSettingsPanel = ({
<VisibleSubheader>
<FormattedMessage id="components.MobilityProfile.MobilityPane.header" />
</VisibleSubheader>
<FormattedMessage
id="components.MobilityProfile.MobilityPane.planTripDescription"
values={{
manageLink: (linkText: string) => (
<UnderlinedLink to="/account/settings">
{linkText}
</UnderlinedLink>
)
}}
/>
<FormattedMessage id="components.MobilityProfile.MobilityPane.planTripDescription" />
<MobilityProfileDropdown
label={intl.formatMessage({
id: 'components.MobilityProfile.dropdownLabel'
Expand Down

0 comments on commit 4a406cd

Please sign in to comment.