diff --git a/apps/expo/src/app/components/ExternalLink.tsx b/apps/expo/src/app/components/ExternalLink.tsx deleted file mode 100644 index d3507b0..0000000 --- a/apps/expo/src/app/components/ExternalLink.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import React from "react"; -import { Platform } from "react-native"; -import { Link } from "expo-router"; -import * as WebBrowser from "expo-web-browser"; - -export function ExternalLink( - props: Omit, "href"> & { href: string }, -) { - return ( - { - if (Platform.OS !== "web") { - // Prevent the default behavior of linking to the default browser on native. - e.preventDefault(); - // Open the link in an in-app browser. - WebBrowser.openBrowserAsync(props.href).catch((error) => { - console.error("Failed to open browser", error); - }); - } - }} - /> - ); -} diff --git a/apps/expo/tsconfig.json b/apps/expo/tsconfig.json index 72191da..7bdd73b 100644 --- a/apps/expo/tsconfig.json +++ b/apps/expo/tsconfig.json @@ -5,12 +5,12 @@ "baseUrl": ".", "paths": { "~/*": ["./src/*"], - "~/components/*": ["./src/app/components/*"] + "~/components/*": ["./src/app/components/*"], }, "jsx": "react-native", "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", - "types": ["nativewind/types"] + "types": ["nativewind/types"], }, "include": ["src", "*.ts", "*.js", ".expo/types/**/*.ts", "expo-env.d.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/tooling/eslint/tsconfig.json b/tooling/eslint/tsconfig.json index 39b1852..6e1fcf4 100644 --- a/tooling/eslint/tsconfig.json +++ b/tooling/eslint/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "@movie-web/tsconfig/base.json", "compilerOptions": { - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" + "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", }, "include": ["."], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/tooling/prettier/tsconfig.json b/tooling/prettier/tsconfig.json index 39b1852..6e1fcf4 100644 --- a/tooling/prettier/tsconfig.json +++ b/tooling/prettier/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "@movie-web/tsconfig/base.json", "compilerOptions": { - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" + "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", }, "include": ["."], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/tooling/tailwind/tsconfig.json b/tooling/tailwind/tsconfig.json index 39b1852..6e1fcf4 100644 --- a/tooling/tailwind/tsconfig.json +++ b/tooling/tailwind/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "@movie-web/tsconfig/base.json", "compilerOptions": { - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" + "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", }, "include": ["."], - "exclude": ["node_modules"] + "exclude": ["node_modules"], }