diff --git a/Page.tsx b/Page.tsx index eb65413..518186c 100644 --- a/Page.tsx +++ b/Page.tsx @@ -1,4 +1,4 @@ -import {StyleSheet, View} from 'react-native' +import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native' import {Searchbar} from 'react-native-paper' import {PADDING} from './constants' import MassiveFab from './MassiveFab' @@ -8,14 +8,16 @@ export default function Page({ children, term, search, + style, }: { children: JSX.Element | JSX.Element[] onAdd?: () => void term: string search: (value: string) => void + style?: StyleProp }) { return ( - + { @@ -227,74 +224,62 @@ export default function SettingsPage() { return ( <> - - - + + {'theme'.includes(term.toLowerCase()) && ( + - )} - {'date format'.includes(term.toLowerCase()) && ( - ({ - label: 'Dark color', - value: colorOption, - color: colorOption, - }))} - /> - )} - {'color'.includes(term.toLowerCase()) && ( - ({ + label: `Date format: ${format(today, option)}`, + value: option, + }))} + /> + )} + {'color'.includes(term.toLowerCase()) && ( + ({ + label: 'Light color', + value: colorOption, + color: colorOption, + }))} + /> + )} + {'alarm sound'.includes(term.toLowerCase()) && ( + + )} )