Skip to content

Commit 490876d

Browse files
committed
waitlist lottery results screen text
1 parent 7f09746 commit 490876d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

shared-helpers/src/locales/general.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"account.application.lottery.rawRankHeader": "Your raw rank",
1818
"account.application.lottery.resultsHeader": "Here are your lottery results",
1919
"account.application.lottery.resultsSubheader": "%{applications} applications were submitted for %{units} unit",
20+
"account.application.lottery.resultsSubheaderWaitlist": "%{applications} applications were submitted",
2021
"account.application.lottery.resultsSubheaderPlural": "%{applications} applications were submitted for %{units} units",
22+
"account.application.lottery.resultsSubheaderPluralWaitlist": "%{applications} applications were submitted",
2123
"account.application.lottery.viewResults": "View lottery results",
2224
"account.application.noAccessError": "You are unauthorized to view this application",
2325
"account.application.noApplicationError": "No application with that ID exists",

sites/public/src/pages/account/application/[id]/lottery-results.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Listing,
99
MultiselectQuestionsApplicationSectionEnum,
1010
PublicLotteryResult,
11+
ReviewOrderTypeEnum,
1112
} from "@bloom-housing/shared-helpers/src/types/backend-swagger"
1213
import { Card, Button, Heading, Icon, Message } from "@bloom-housing/ui-seeds"
1314
import FormsLayout from "../../../../layouts/forms"
@@ -90,6 +91,11 @@ const LotteryResults = () => {
9091
)
9192
}
9293

94+
const lotteryResultText =
95+
listing.reviewOrderType === ReviewOrderTypeEnum.waitlistLottery
96+
? `$(t("account.application.lottery.resultsHeader")) for the waitlist`
97+
: t("account.application.lottery.resultsHeader")
98+
9399
return (
94100
<>
95101
<RequireLogin signInPath="/sign-in" signInMessage={t("t.loginIsRequired")}>
@@ -116,7 +122,7 @@ const LotteryResults = () => {
116122
{t("t.back")}
117123
</Button>
118124
<Heading priority={2} size={"2xl"} className="mt-6">
119-
{t("account.application.lottery.resultsHeader")}
125+
{lotteryResultText}
120126
</Heading>
121127
<p className="mt-4">
122128
{t(

0 commit comments

Comments
 (0)