From 6ab7f13a1e64ed6cde2ee34f56c4a7f342896767 Mon Sep 17 00:00:00 2001 From: Izak Robles Date: Thu, 31 Aug 2023 15:53:36 -0500 Subject: [PATCH] formatting --- lib/screens/HomeScreen.tsx | 62 +++++++++++++++++++++++++++----------- styles/colors.ts | 4 +-- styles/pages/HomeStyles.ts | 2 +- 3 files changed, 47 insertions(+), 21 deletions(-) diff --git a/lib/screens/HomeScreen.tsx b/lib/screens/HomeScreen.tsx index 2310e40..3a3a2e5 100644 --- a/lib/screens/HomeScreen.tsx +++ b/lib/screens/HomeScreen.tsx @@ -139,7 +139,11 @@ const HomeScreen: React.FC = ({ navigation, route }) => { }} onPress={() => deleteNote(data.item.id, rowMap)} > - + ) : null} @@ -232,7 +236,7 @@ const HomeScreen: React.FC = ({ navigation, route }) => { }) } > - + {IsImage ? ( = ({ navigation, route }) => { )} - + {item.title.length > textLength ? item.title.slice(0, textLength) + "..." @@ -268,9 +270,17 @@ const HomeScreen: React.FC = ({ navigation, route }) => { }} > {item.published ? ( - + ) : ( - + )} @@ -280,13 +290,24 @@ const HomeScreen: React.FC = ({ navigation, route }) => { return ( - - {navigation.navigate("AccountPage")}}> - - {userInitials} - + + { + navigation.navigate("AccountPage"); + }} + > + {userInitials} Field Notes @@ -302,7 +323,9 @@ const HomeScreen: React.FC = ({ navigation, route }) => { onPress={() => handleFilters("private")} style={isPrivate ? HomeStyles.filtersSelected : HomeStyles.filters} > - + {rendering ? "Private" : isPrivate @@ -315,7 +338,9 @@ const HomeScreen: React.FC = ({ navigation, route }) => { onPress={() => handleFilters("published")} style={published ? HomeStyles.filtersSelected : HomeStyles.filters} > - + {rendering ? "Published" : published @@ -323,7 +348,10 @@ const HomeScreen: React.FC = ({ navigation, route }) => { : "Published"} - + Sort by Time diff --git a/styles/colors.ts b/styles/colors.ts index 88deb5c..3358efd 100644 --- a/styles/colors.ts +++ b/styles/colors.ts @@ -12,7 +12,7 @@ export const lightTheme = { export const darkTheme = { textPrimary: "#faf7f7", - textSecondary: "#ddd", + textSecondary: "#ddd", backgroundPrimary: "#111", backgroundSecondary: "#222", backgroundTertiary: "#000", @@ -21,5 +21,3 @@ export const darkTheme = { highlightPrimary: "#cc0000", highlightSecondary: "#02c484", }; - - \ No newline at end of file diff --git a/styles/pages/HomeStyles.ts b/styles/pages/HomeStyles.ts index 91ead33..aaa61b3 100644 --- a/styles/pages/HomeStyles.ts +++ b/styles/pages/HomeStyles.ts @@ -3,7 +3,7 @@ import { lightTheme, darkTheme } from "../colors"; import Constants from "expo-constants"; // build out settings for dark/light mode configuration -const globalStyle = lightTheme +const globalStyle = lightTheme; // const globalStyle = darkTheme; export const HomeStyles = StyleSheet.create({