Remove shop-domain login form from landing page (App Store requirement 2.3.1); feature image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
metatroncubeswdev 2026-10-14 12:54:54 -04:00
parent d4d42b917b
commit 0050304273
2 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,6 @@
import type { LoaderFunctionArgs } from "react-router"; import type { LoaderFunctionArgs } from "react-router";
import { redirect, Form, useLoaderData } from "react-router"; import { redirect, Form, useLoaderData } from "react-router";
import { login } from "../../shopify.server";
import styles from "./styles.module.css"; import styles from "./styles.module.css";
export const loader = async ({ request }: LoaderFunctionArgs) => { export const loader = async ({ request }: LoaderFunctionArgs) => {
@ -12,7 +10,9 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
throw redirect(`/app?${url.searchParams.toString()}`); throw redirect(`/app?${url.searchParams.toString()}`);
} }
return { showForm: Boolean(login) }; // App Store requirement 2.3.1: never ask merchants to type their shop domain. Installs start from
// the Shopify App Store or admin; this page is only a public landing page.
return { showForm: false };
}; };
export default function App() { export default function App() {
@ -37,6 +37,9 @@ export default function App() {
</button> </button>
</Form> </Form>
)} )}
<p className={styles.text}>
Install Offerlyst from the Shopify App Store. <a href="/privacy">Privacy policy</a> · <a href="/terms">Terms</a>
</p>
<ul className={styles.list}> <ul className={styles.list}>
<li> <li>
<strong>No discount stacking surprises</strong>. Many offers can run together; every item counts once, <strong>No discount stacking surprises</strong>. Many offers can run together; every item counts once,

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB