From 79722f7356fa8e633cfda683857100f10409bcbd Mon Sep 17 00:00:00 2001
From: piotrruss <mail@pruss.it>
Date: Fri, 20 May 2022 00:51:30 +0100
Subject: configure eas, improve top bar

---
 components/Edit.jsx | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

(limited to 'components/Edit.jsx')

diff --git a/components/Edit.jsx b/components/Edit.jsx
index d2ec6b3..3ca7b32 100644
--- a/components/Edit.jsx
+++ b/components/Edit.jsx
@@ -71,18 +71,18 @@ const Edit = ({ edit, setEdit, session, setSession, showError }) => {
         setEdit={setEdit}
         saveNote={edit._id ? saveNote : createNote}
       />
-      {
-        content === undefined || saving
-          ? <Text style={styles.text}>{saving ? 'Saving...' : 'Loading...'}</Text>
-          : (
-            <View style={styles.container}>
-              <TextInput
-                placeholder="Title"
-                placeholderTextColor="#BBB"
-                style={styles.title}
-                value={title}
-                onChange={e => setTitle(e.nativeEvent.text)}
-              />
+      <View style={styles.container}>
+        <TextInput
+          placeholder="Title"
+          placeholderTextColor="#BBB"
+          style={styles.title}
+          value={title}
+          onChange={e => setTitle(e.nativeEvent.text)}
+        />
+        {
+          content === undefined || saving
+            ? <Text style={styles.text}>{saving ? 'Saving...' : 'Loading content...'}</Text>
+            : (
               <TextInput
                 placeholder="Content"
                 placeholderTextColor="#BBB"
@@ -92,9 +92,9 @@ const Edit = ({ edit, setEdit, session, setSession, showError }) => {
                 value={content}
                 onChange={e => setContent(e.nativeEvent.text)}
               />
-            </View>
-          )
-      }
+            )
+        }
+      </View>
     </>
   )
 }
@@ -119,7 +119,6 @@ const styles = StyleSheet.create({
     paddingVertical: 10,
   },
   text: {
-    padding: 15,
     color: 'white',
   }
 });
-- 
cgit v1.2.3

