Skip to content

Commit 4fcca1e

Browse files
authored
fix: remove "zip code"; include getCollatedReferralOptions with Client's query (#116)
1 parent add67f9 commit 4fcca1e

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

frontend/src/app/[locale]/generate-referrals/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ export default function Page() {
374374
</div>
375375
</div>
376376
<ClientDetailsPromptBubble
377-
clientDescription={clientDescription}
377+
clientDescription={
378+
clientDescription + getCollatedReferralOptions()
379+
}
378380
/>
379381
<ResourcesList
380382
resources={retainedResources ?? []}

frontend/src/components/ClientDetailsInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function ClientDetailsInput({
229229
</h4>
230230
<div className="grid grid-cols-1 md:grid-cols-1 gap-3">
231231
<Input
232-
placeholder="Enter location (city, area, zip code, etc.)"
232+
placeholder="Enter location (city, county, area, etc.)"
233233
value={locationText}
234234
onChange={(e) => onLocationChange(e.target.value)}
235235
className="border-gray-300 bg-white focus:ring-blue-500 focus:border-blue-500"

frontend/src/components/ClientDetailsPromptBubble.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ const ClientDetailsPromptBubble = ({
66
return (
77
<div className="bg-gray-100 rounded-2xl p-4 border">
88
<p className="text-lg font-semibold text-gray-900 text-center mb-3">
9-
{clientDescription}
9+
{clientDescription.split("\n").map((line, index, array) => (
10+
<span key={index}>
11+
{line}
12+
{index < array.length - 1 && <br />}
13+
</span>
14+
))}
1015
</p>
1116
</div>
1217
);

0 commit comments

Comments
 (0)