Skip to content

Commit

Permalink
RealmInputScreen [nfc]: Move variable declaration to top of block
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Mar 29, 2022
1 parent a8d53d3 commit acd4ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/start/RealmInputScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const urlFromInputValue = (realmInputValue: string): URL | void => {
};

export default function RealmInputScreen(props: Props): Node {
const { navigation } = props;

const [progress, setProgress] = useState<boolean>(false);
const [realmInputValue, setRealmInputValue] = useState<string>('');
const [error, setError] = useState<string | null>(null);
Expand Down Expand Up @@ -61,8 +63,6 @@ export default function RealmInputScreen(props: Props): Node {
}
}, [realmInputValue]);

const { navigation } = props;

const styles = {
input: { marginTop: 16, marginBottom: 8 },
hintText: { paddingLeft: 2, fontSize: 12 },
Expand Down

0 comments on commit acd4ea0

Please sign in to comment.