Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix date picker modal renders blank if themVariant is not set based on app's theme mode

Ammar Ahmedce03e01bf25e
diff --git a/apps/mobile/app/components/properties/date-meta.tsx b/apps/mobile/app/components/properties/date-meta.tsx
index ab75cab0a..dce327781 100644
--- a/apps/mobile/app/components/properties/date-meta.tsx
+++ b/apps/mobile/app/components/properties/date-meta.tsx
@@ -110,6 +110,7 @@ export const DateMeta = ({ item }: { item: Item }) => {
}}
maximumDate={new Date((item as Note).dateEdited)}
isDarkModeEnabled={isDark}
+ themeVariant={isDark ? "dark" : "light"}
is24Hour={db.settings.getTimeFormat() === "24-hour"}
date={new Date(dateCreated)}
/>