Skip to content

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

mobile: fix delete all notes check truncated

Ammar Ahmed7af138769198
diff --git a/apps/mobile/app/components/dialogs/vault/index.tsx b/apps/mobile/app/components/dialogs/vault/index.tsx
index 3a7c1e53a..4c4be4cd3 100644
--- a/apps/mobile/app/components/dialogs/vault/index.tsx
+++ b/apps/mobile/app/components/dialogs/vault/index.tsx
@@ -67,6 +67,9 @@ import {
} from "@notesnook/core";
import { useThemeColors } from "@notesnook/theme";
import { useUserStore } from "../../../stores/use-user-store";
+import { AppFontSize } from "../../../utils/size";
+import { Pressable } from "../../ui/pressable";
+import AppIcon from "../../ui/AppIcon";
export const VaultDialog: React.FC = () => {
const { colors } = useThemeColors();
@@ -788,20 +791,30 @@ export const VaultDialog: React.FC = () => {
) : null}
{isDeleteVault && (
- <Button
+ <Pressable
onPress={() => setDeleteAll(!deleteAll)}
- icon={
- deleteAll
- ? "check-circle-outline"
- : "checkbox-blank-circle-outline"
- }
style={{
- marginTop: DefaultAppStyles.GAP_VERTICAL
+ paddingHorizontal: 10,
+ paddingVertical: 0,
+ flexDirection: "row",
+ gap: DefaultAppStyles.GAP_SMALL,
+ marginTop: isUserLoggedIn ? DefaultAppStyles.GAP_SMALL : 0
}}
- width="100%"
- title={strings.deleteAllNotes()}
- type="errorShade"
- />
+ >
+ <AppIcon
+ name={
+ deleteAll
+ ? "check-circle-outline"
+ : "checkbox-blank-circle-outline"
+ }
+ color={colors.error.accent}
+ size={AppFontSize.md}
+ />
+
+ <Paragraph color={colors.error.accent} size={AppFontSize.sm}>
+ {strings.deleteAllNotes()}
+ </Paragraph>
+ </Pressable>
)}
{isChangePassword ? (