Skip to content

Commit

Permalink
cleanup styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jomurgel committed Sep 5, 2024
1 parent 0bf66ef commit f57ddd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Todos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Todos(): React.ReactElement {
/>

<TextInput
style={styles.input}
style={theme === 'light' ? styles.input : styles.inputDark}
placeholder="New List Title"
value={newListTitle}
onChangeText={setNewListTitle}
Expand Down
4 changes: 3 additions & 1 deletion src/lib/themeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ export default {
input: {
light: {
...inputShared,
borderColor: red,
backgroundColor: white,
textColor: red,
},
dark: {
...inputShared,
backgroundColor: darkBlue,
borderColor: darkBlue,
backgroundColor: white,
textColor: white,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Lists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function ListScreen( { route }: Props ): ReactElement {
/>

<TextInput
style={styles.input}
style={theme === 'light' ? styles.input : styles.inputDark}
placeholder="New Todo"
value={newTodoText}
onChangeText={setNewTodoText}
Expand Down

0 comments on commit f57ddd1

Please sign in to comment.