Merge pull request #10182 from kashaf-ansari-dev/mobile/improve-skip-wording

mobile: improve skip & go directly to app
This commit is contained in:
Ammar Ahmed
2026-08-10 14:11:32 +05:00
committed by GitHub
4 changed files with 13 additions and 12 deletions

View File

@@ -24,6 +24,8 @@ import { Button } from "../ui/button";
import { IconButton } from "../ui/icon-button";
import { hideAuth } from "./common";
import { AuthParams } from "../../stores/use-navigation-store";
import { strings } from "@notesnook/intl";
import { presentDialog } from "../dialog/functions";
export const AuthHeader = (props: { welcome?: boolean }) => {
const { colors } = useThemeColors();
const route = useRoute();
@@ -56,18 +58,17 @@ export const AuthHeader = (props: { welcome?: boolean }) => {
{!props.welcome ? null : (
<Button
title="Skip"
title={strings.skipAndGoToApp()}
onPress={() => {
hideAuth();
presentDialog({
title: strings.offlineMode(),
paragraph: strings.offlineModeDesc(),
positiveText: strings.understand(),
positivePress: hideAuth as any
});
}}
iconSize={16}
type="plain"
iconPosition="right"
icon="chevron-right"
height={25}
iconStyle={{
marginTop: 2
}}
style={{
paddingHorizontal: 6
}}