diff options
author | dan <dan.abramov@gmail.com> | 2024-04-04 21:34:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:34:55 +0100 |
commit | 3915bb43169ae501d81571c5e1efa12cf0e24dbb (patch) | |
tree | be2f7bed7c842be71922f2793b4b4a20cd6fbc24 /src/screens/Signup/StepInfo/Policies.tsx | |
parent | c190fd58ec82b36ea8124902cad34acc4a5b5ac0 (diff) | |
download | voidsky-3915bb43169ae501d81571c5e1efa12cf0e24dbb.tar.zst |
Enforce Text suffix for Text-rendering components (#3407)
* Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns
Diffstat (limited to 'src/screens/Signup/StepInfo/Policies.tsx')
-rw-r--r-- | src/screens/Signup/StepInfo/Policies.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/screens/Signup/StepInfo/Policies.tsx b/src/screens/Signup/StepInfo/Policies.tsx index 4879ae7b3..f25bda274 100644 --- a/src/screens/Signup/StepInfo/Policies.tsx +++ b/src/screens/Signup/StepInfo/Policies.tsx @@ -6,7 +6,7 @@ import {useLingui} from '@lingui/react' import {atoms as a, useTheme} from '#/alf' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo' -import {InlineLink} from '#/components/Link' +import {InlineLinkText} from '#/components/Link' import {Text} from '#/components/Typography' export const Policies = ({ @@ -45,16 +45,16 @@ export const Policies = ({ const els = [] if (tos) { els.push( - <InlineLink key="tos" to={tos}> + <InlineLinkText key="tos" to={tos}> {_(msg`Terms of Service`)} - </InlineLink>, + </InlineLinkText>, ) } if (pp) { els.push( - <InlineLink key="pp" to={pp}> + <InlineLinkText key="pp" to={pp}> {_(msg`Privacy Policy`)} - </InlineLink>, + </InlineLinkText>, ) } if (els.length === 2) { |