A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix months ordering bug in wrapped
Ammar Ahmedadc7bb1d9e0e
diff --git a/apps/mobile/app/screens/wrapped/index.tsx b/apps/mobile/app/screens/wrapped/index.tsxindex 9c367144f..55292657b 100644--- a/apps/mobile/app/screens/wrapped/index.tsx+++ b/apps/mobile/app/screens/wrapped/index.tsx@@ -590,6 +590,21 @@ function AttachmentsSlide({);}+const MONTHS_IN_ORDER = [+ "January",+ "February",+ "March",+ "April",+ "May",+ "June",+ "July",+ "August",+ "September",+ "October",+ "November",+ "December"+];+// Summary Slidefunction SummarySlide({stats,@@ -653,7 +668,7 @@ function SummarySlide({gap: 10}}>- {Object.keys(stats.monthlyStats).map((item) => (+ {MONTHS_IN_ORDER.map((item) => (<Viewkey={item}style={{@@ -663,7 +678,10 @@ function SummarySlide({><Viewstyle={{- backgroundColor: colors.primary.accent,+ backgroundColor:+ stats.monthlyStats[item] === maxCount+ ? colors.primary.accent+ : colors.primary.icon,height:maxCount > 0? (stats.monthlyStats[item] / maxCount) * 100