Skip to content

Commit 52288fa

Browse files
chrisbobbegnprice
authored andcommitted
RealmInputScreen: Link to doc for what "server URL" is and how to find it
1 parent de3c62c commit 52288fa

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/start/RealmInputScreen.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { TranslationContext } from '../boot/TranslationProvider';
1818
import type { LocalizableText } from '../types';
1919
import { getGlobalSettings } from '../directSelectors';
2020
import { useGlobalSelector } from '../react-redux';
21+
import WebLink from '../common/WebLink';
2122

2223
type Props = $ReadOnly<{|
2324
navigation: AppNavigationProp<'realm-input'>,
@@ -172,7 +173,18 @@ export default function RealmInputScreen(props: Props): Node {
172173
keyboardShouldPersistTaps="always"
173174
shouldShowLoadingBanner={false}
174175
>
175-
<ZulipTextIntl text="Enter your Zulip server URL:" />
176+
<ZulipTextIntl
177+
text={{
178+
text: 'Enter your Zulip server URL: <z-link>(What’s this?)</z-link>',
179+
values: {
180+
'z-link': chunks => (
181+
<WebLink url={new URL('https://zulip.com/help/logging-in#find-the-zulip-log-in-url')}>
182+
{chunks}
183+
</WebLink>
184+
),
185+
},
186+
}}
187+
/>
176188
<View style={styles.inputWrapper}>
177189
<TextInput
178190
value={realmInputValue}

static/translations/messages_en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"No unread messages": "No unread messages",
107107
"Pick account": "Pick account",
108108
"Welcome": "Welcome",
109-
"Enter your Zulip server URL:": "Enter your Zulip server URL:",
109+
"Enter your Zulip server URL: <z-link>(What’s this?)</z-link>": "Enter your Zulip server URL: <z-link>(What’s this?)</z-link>",
110110
"e.g. zulip.example.com": "e.g. zulip.example.com",
111111
"Subscriptions": "Subscriptions",
112112
"Search": "Search",

0 commit comments

Comments
 (0)