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:
parent
d4d42b917b
commit
0050304273
@ -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,
|
||||||
|
|||||||
BIN
brand/offerlyst-feature-1600x900.png
Normal file
BIN
brand/offerlyst-feature-1600x900.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
Loading…
x
Reference in New Issue
Block a user