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

fix: remove dead links #450

Merged
merged 3 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
16 changes: 14 additions & 2 deletions lib/components/user/terms-of-use-pane.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import { connect } from 'react-redux'
import { Checkbox, ControlLabel, FormGroup } from 'react-bootstrap'

import { TERMS_OF_SERVICE_PATH, TERMS_OF_STORAGE_PATH } from '../../util/constants'
Expand All @@ -10,12 +11,15 @@ const TermsOfUsePane = ({
disableCheckTerms,
handleBlur,
handleChange,
otpConfig,
values: userData
}) => {
const {
hasConsentedToTerms,
storeTripHistory
} = userData
const { persistence } = otpConfig
const { terms_of_storage: termsOfStorageSet } = persistence

return (
<div>
Expand Down Expand Up @@ -46,11 +50,19 @@ const TermsOfUsePane = ({
>
{/* TODO: Implement the link */}
Optional: I consent to the Trip Planner storing my historical planned trips in order to
improve transit services in my area. <a href={`/#${TERMS_OF_STORAGE_PATH}`} target='_blank'>More info...</a>
improve transit services in my area. {termsOfStorageSet && <a href={`/#${TERMS_OF_STORAGE_PATH}`} target='_blank'>More info...</a>}
</Checkbox>
</FormGroup>
</div>
)
}
const mapStateToProps = (state, ownProps) => {
return {
otpConfig: state.otp.config
miles-grant-ibigroup marked this conversation as resolved.
Show resolved Hide resolved
}
}

const mapDispatchToProps = {
}
miles-grant-ibigroup marked this conversation as resolved.
Show resolved Hide resolved

export default TermsOfUsePane
export default connect(mapStateToProps, mapDispatchToProps)(TermsOfUsePane)
7 changes: 0 additions & 7 deletions lib/util/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ export const accountLinks = [
{
text: 'My account',
url: ACCOUNT_PATH
},
{
// Add a target attribute if you need the link to open in a new window, etc.
// (supports the same values as <a target=... >).
// target: '_blank',
text: 'Help',
url: '/help'
}
]

Expand Down