Skip to content

Commit

Permalink
adding comments to document code more
Browse files Browse the repository at this point in the history
  • Loading branch information
teamomiamigo committed Nov 6, 2024
1 parent f62fcd7 commit a5958a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/screens/MorePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ export default function MorePage() {
meaningful discussions.
</Text>

{/* use theme object in theme.text to apply colors to text */}
<View style={styles.textContainer}>
<View style={styles.buttonContainer}>
<View style={[styles.switchContainer, { backgroundColor: theme.background }]}>
<Text style={[styles.switchText, {color: theme.text}]}>{isDarkmode ? "Dark Mode" : "Light Mode"}</Text>
<Text style={[styles.switchText, {color: theme.text}]}>{isDarkmode ? "Dark Mode" : "Light Mode"}</Text>
{/* Use theme object in theme.primaryColor to apply colors to the switch */}
<Switch
testID="dark-mode-switch"
trackColor={{
Expand Down Expand Up @@ -287,10 +287,10 @@ const styles = StyleSheet.create({
resizeMode: "cover",
},
lightModeText: {
color: '#000000',
color: '#000000', /* making sure color black is specified with color code */
},
darkModeText: {
color: '#ffffff',
color: '#ffffff', /* same with black */
}
});

Expand Down

0 comments on commit a5958a3

Please sign in to comment.