@@ -8,7 +8,6 @@ import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet
88import type { AppNavigationProp } from '../nav/AppNavigator' ;
99import { ThemeContext , createStyleSheet } from '../styles' ;
1010import { autocompleteRealmPieces , autocompleteRealm , fixRealmUrl } from '../utils/url' ;
11- import type { Protocol } from '../utils/url' ;
1211import ZulipText from './ZulipText' ;
1312
1413const styles = createStyleSheet ( {
@@ -29,22 +28,6 @@ const styles = createStyleSheet({
2928} ) ;
3029
3130type Props = $ReadOnly < { |
32- /**
33- * The protocol which will be used if the user doesn't specify one.
34- * Should almost certainly be "https://".
35- */
36- defaultProtocol : Protocol ,
37- /**
38- * The example organization name that will be displayed while the
39- * entry field is empty. Appears, briefly, as the initial (lowest-
40- * level) component of the realm's domain.
41- */
42- defaultOrganization : string ,
43- /**
44- * The default domain to which the user's input will be appended, if
45- * it appears not to contain an explicit domain.
46- */
47- defaultDomain : string ,
4831 // TODO: Currently this type is acceptable because the only
4932 // `navigation` prop we pass to a `SmartUrlInput` instance is the
5033 // one from a component on AppNavigator.
@@ -109,15 +92,11 @@ function useRn19366Workaround(textInputRef) {
10992}
11093
11194export default function SmartUrlInput ( props : Props ) : Node {
112- const {
113- defaultProtocol,
114- defaultOrganization,
115- defaultDomain,
116- style,
117- onChangeText,
118- onSubmitEditing,
119- enablesReturnKeyAutomatically,
120- } = props ;
95+ const { style, onChangeText, onSubmitEditing, enablesReturnKeyAutomatically } = props ;
96+
97+ const defaultProtocol = 'https://' ;
98+ const defaultOrganization = 'your-org' ;
99+ const defaultDomain = 'zulipchat.com' ;
121100
122101 // We should replace the fixme with
123102 // `React$ElementRef<typeof TextInput>` when we can. Currently, that
0 commit comments