Skip to content

Commit 9ed748a

Browse files
committed
Update Remix Jam FAQ with invoice info
1 parent f10b682 commit 9ed748a

File tree

2 files changed

+29
-600
lines changed

2 files changed

+29
-600
lines changed

app/routes/jam/pages/2025.faq.tsx

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Fragment } from "react";
21
import { Link } from "react-router";
32
import { AddressLink } from "../utils";
43
import { ScrambleText, Title, Subheader, Paragraph } from "../text";
@@ -159,17 +158,34 @@ export default function JamFAQPage() {
159158

160159
<FAQSection
161160
question="What's the refund policy?"
162-
answer="There are no refunds, but tickets will be transferable."
161+
answer="There are no refunds, but tickets are transferable."
162+
/>
163+
164+
<FAQSection
165+
question="How do I get an invoice for tax purposes?"
166+
answer={
167+
<Paragraph>
168+
Please email <JamEmail /> for invoice requests.
169+
</Paragraph>
170+
}
163171
/>
164172

165173
<FAQSection
166174
question="How do I transfer a ticket?"
167-
answer="Ask Brooks!"
175+
answer={
176+
<Paragraph>
177+
Please email <JamEmail /> for ticket transfer requests.
178+
</Paragraph>
179+
}
168180
/>
169181

170182
<FAQSection
171183
question="What if I have other questions?"
172-
answer="You guessed it, ask Brooks!"
184+
answer={
185+
<Paragraph>
186+
You guessed it, email <JamEmail />.
187+
</Paragraph>
188+
}
173189
/>
174190
</div>
175191
</main>
@@ -197,37 +213,15 @@ function FAQSection({
197213
{question}
198214
</Link>
199215
</Subheader>
200-
{typeof answer === "string" ? (
201-
<Paragraph>{replaceBrooksWithLink(answer)}</Paragraph>
202-
) : (
203-
answer
204-
)}
216+
{typeof answer === "string" ? <Paragraph>{answer}</Paragraph> : answer}
205217
</section>
206218
);
207219
}
208220

209-
// Really wanting RSC right now
210-
function replaceBrooksWithLink(children: React.ReactNode): React.ReactNode {
211-
if (typeof children !== "string") return children;
212-
213-
const parts = children.split("Brooks");
214-
if (parts.length === 1) return children;
215-
221+
function JamEmail() {
216222
return (
217-
<>
218-
{parts.map((part, index) => (
219-
<Fragment key={index}>
220-
{part}
221-
{index < parts.length - 1 ? (
222-
<a
223-
className="text-blue-400 hover:underline"
224-
href="mailto:brooks.lybrand@shopify.com"
225-
>
226-
Brooks
227-
</a>
228-
) : null}
229-
</Fragment>
230-
))}
231-
</>
223+
<a href="mailto:jam@remix.run" className="text-blue-400 hover:underline">
224+
jam@remix.run
225+
</a>
232226
);
233227
}

0 commit comments

Comments
 (0)