Skip to content

Commit acd4ea0

Browse files
committed
RealmInputScreen [nfc]: Move variable declaration to top of block
1 parent a8d53d3 commit acd4ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/start/RealmInputScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const urlFromInputValue = (realmInputValue: string): URL | void => {
3030
};
3131

3232
export default function RealmInputScreen(props: Props): Node {
33+
const { navigation } = props;
34+
3335
const [progress, setProgress] = useState<boolean>(false);
3436
const [realmInputValue, setRealmInputValue] = useState<string>('');
3537
const [error, setError] = useState<string | null>(null);
@@ -61,8 +63,6 @@ export default function RealmInputScreen(props: Props): Node {
6163
}
6264
}, [realmInputValue]);
6365

64-
const { navigation } = props;
65-
6666
const styles = {
6767
input: { marginTop: 16, marginBottom: 8 },
6868
hintText: { paddingLeft: 2, fontSize: 12 },

0 commit comments

Comments
 (0)