Skip to content

Commit 191cdd9

Browse files
committed
Fixed the terms and privacy link issue.
1 parent 2b8ce38 commit 191cdd9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

web/src/components/BlueLink/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import classnames from 'classnames';
22
import React from 'react';
33

4-
const BlueLink = ({ text, ...rest }) => (
4+
const BlueLink = ({ text, disabled = false, ...rest }) => (
55
<a
66
{...rest}
77
target="_blank"
8+
disabled={disabled}
89
className={classnames('blue-link', 'dialog-link', 'pointer')}
910
>
1011
{text}

web/src/containers/Signup/SignupForm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ export const generateFormFields = (strings, theme, links = {}) => ({
4545
label: strings.formatString(
4646
strings.SIGN_UP.TERMS.text,
4747
<BlueLink
48+
disabled={!links.terms}
4849
href={links.terms}
4950
text={strings.SIGN_UP.TERMS.terms}
5051
/>,
5152
<BlueLink
53+
disabled={!links.privacy}
5254
href={links.privacy}
5355
text={strings.SIGN_UP.TERMS.policy}
5456
/>

0 commit comments

Comments
 (0)