Ask for name and email before sending visitors to Amazon or Apple Books (switchable in admin → Books); v2.29.0
Publish Container / build (push) Successful in 15m46s
Publish Container / build (push) Successful in 15m46s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c342f14bd
commit
9f52437a07
10 files changed
+277
-11
No files matched your search
@@ -5801,6 +5801,20 @@ const [dashboardNow, setDashboardNow] = useState(() => new Date())
|
||||
<h2>Books</h2>
|
||||
<p>Amazon books shown in the Reading List section on the Resources page. Add a cover image, description, and Amazon link for each book.</p>
|
||||
</div>
|
||||
<div className="admin-field" style={{ marginBottom: '1.25rem' }}>
|
||||
<label htmlFor="gate-store-links" style={{ display: 'flex', gap: 8, alignItems: 'center', cursor: 'pointer' }}>
|
||||
<input
|
||||
id="gate-store-links"
|
||||
type="checkbox"
|
||||
checked={form.gateStoreLinks !== false}
|
||||
onChange={e => setForm(f => ({ ...f, gateStoreLinks: e.target.checked }))}
|
||||
/>
|
||||
Ask for name and email before sending visitors to Amazon or Apple Books
|
||||
</label>
|
||||
<p className="admin-field-help">
|
||||
Applies to the Amazon and Apple Books buttons on the Reading List and on the study guide and download pages. Each visitor is added to your Inbox as a contact, and subscribed if they leave the box ticked. Turn it off to send visitors straight to the store.
|
||||
</p>
|
||||
</div>
|
||||
{(form.customLinks ?? []).filter(l => l.placement === 'books').length === 0 && <p className="admin-stats-note">No books yet.</p>}
|
||||
{(form.customLinks ?? []).filter(l => l.placement === 'books').map(book => (
|
||||
<div key={book.id} className="admin-array-row">
|
||||
|
||||
Reference in new issue
Block a user