Skip to content

Commit

Permalink
lint expo app
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesthl committed Oct 24, 2023
1 parent 3bf8b54 commit f93b441
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/expo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ yarn-error.*
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

# expo-env.d.ts
expo-env.d.ts
# @end expo-cli

GoogleService-Info.plist
Expand Down
5 changes: 2 additions & 3 deletions apps/expo/app/(app)/(authorized)/account/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from "react";
import { Linking, Platform, RefreshControl, useColorScheme } from "react-native";
import type { Href } from "expo-router";
import { Link, router, Stack } from "expo-router";
import {
AlertTriangle,
Expand Down Expand Up @@ -139,7 +138,7 @@ const Account = observer(() => {
<H4>{translate.t("account.legal.title")}</H4>
<YGroup alignSelf="center" bordered size="$5" separator={<Separator />}>
<YGroup.Item>
<Link href={appConfig.privacyPolicyUrl as Href<string>} asChild>
<Link href={appConfig.privacyPolicyUrl} asChild>
<ListItem
hoverTheme
pressTheme
Expand Down Expand Up @@ -169,7 +168,7 @@ const Account = observer(() => {
</ListItem>
</YGroup.Item>
<YGroup.Item>
<Link href={appConfig.imprintUrl as Href<string>} asChild>
<Link href={appConfig.imprintUrl} asChild>
<ListItem
hoverTheme
pressTheme
Expand Down
3 changes: 1 addition & 2 deletions apps/expo/app/(app)/auth/signin/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import type { Href } from "expo-router";
import { Link, router, Stack } from "expo-router";
import { LmButton } from "@tamagui-extras/core";
import { LmInput } from "@tamagui-extras/form";
Expand Down Expand Up @@ -51,7 +50,7 @@ export default function SignIn() {
if (error?.name === "USER_NOT_CONFIRMED_ERROR") {
try {
await AuthStore.verifyEmail();
router.push(("/auth/email/verify-sent" + `?mail=${values.email}`) as Href<unknown>);
router.push(`/auth/email/verify-sent?mail=${values.email}`);
} catch (errorTmp) {
setErrors({
password: translate.t("auth.login.errors.unknown"),
Expand Down
5 changes: 2 additions & 3 deletions apps/expo/app/(app)/auth/signup/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Href } from "expo-router";
import { Link, router, Stack } from "expo-router";
import { LmButton } from "@tamagui-extras/core";
import { LmInput } from "@tamagui-extras/form";
Expand Down Expand Up @@ -163,13 +162,13 @@ export default function SignUp() {
}}
>
<Text>{translate.t("auth.signUp.privacyPolicy.0" as "auth.signUp.privacyPolicy")}</Text>
<Link href={appConfig.privacyPolicyUrl as Href<string>}>
<Link href={appConfig.privacyPolicyUrl}>
<Text textDecorationLine="underline">
{translate.t("auth.signUp.privacyPolicy.1" as "auth.signUp.privacyPolicy")}
</Text>
</Link>
<Text>{translate.t("auth.signUp.privacyPolicy.2" as "auth.signUp.privacyPolicy")}</Text>
<Link href={appConfig.termsAndConditionsUrl as Href<string>}>
<Link href={appConfig.termsAndConditionsUrl}>
<Text textDecorationLine="underline">
{translate.t("auth.signUp.privacyPolicy.3" as "auth.signUp.privacyPolicy")}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/constants/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export const appConfig = {
contactUsUrl: "https://www.google.com",
imprintUrl: "https://www.google.com",
bundleIdentifier: "com.lukesthl.expo-supertokens",
};
} as const;

0 comments on commit f93b441

Please sign in to comment.