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 incorrect button type in dialog
Ammar Ahmed8d4ae8e97062
diff --git a/apps/mobile/app/components/dialog/index.js b/apps/mobile/app/components/dialog/index.jsindex b5545fc23..e0c5033eb 100644--- a/apps/mobile/app/components/dialog/index.js+++ b/apps/mobile/app/components/dialog/index.js@@ -195,7 +195,7 @@ export const Dialog = ({ context = "global" }) => {iconSize={20}width="100%"title={dialogInfo.check.info}- type={checked ? dialogInfo.check.type : "gray"}+ type={checked ? dialogInfo.check.type || "selected" : "plain"}/></>) : null}diff --git a/apps/mobile/app/components/ui/pressable/index.tsx b/apps/mobile/app/components/ui/pressable/index.tsxindex d4f56cbed..ecfe77dea 100644--- a/apps/mobile/app/components/ui/pressable/index.tsx+++ b/apps/mobile/app/components/ui/pressable/index.tsx@@ -212,7 +212,8 @@ export const useButton = ({type: ButtonTypes;}): ButtonVariant => {const { colors, isDark } = useThemeColors();- return buttonTypes(colors, accent, text, isDark)[type];+ const types = buttonTypes(colors, accent, text, isDark);+ return types[type] || types["plain"];};export const Pressable = ({