@@ -13,6 +13,7 @@ import {
1313import Snackbar from "@material-ui/core/Snackbar" ;
1414import Alert from "@material-ui/lab/Alert" ;
1515import { mutateResourceListFunction } from "@pennlabs/rest-hooks/dist/types" ;
16+ import { isAprilFools , QUEUE_LABEL , queueLabel } from "../../../utils/branding" ;
1617import QuestionForm from "./QuestionForm" ;
1718import QuestionCard from "./QuestionCard" ;
1819import { Queue , Course , Question , Tag } from "../../../types" ;
@@ -52,10 +53,10 @@ const MessageQuota = ({
5253 < Message color = { queueLength >= rateLimitLength ? "red" : "green" } >
5354 < Message . Header >
5455 { queueLength >= rateLimitLength ? "ACTIVE:" : "INACTIVE:" } A
55- rate-limiting quota is set on this queue .
56+ rate-limiting quota is set on this { queueLabel } .
5657 </ Message . Header >
5758 < p >
58- { `The quota will activate when there are at least ${ rateLimitLength } student(s) in the queue . ` +
59+ { `The quota will activate when there are at least ${ rateLimitLength } student(s) in the ${ queueLabel } . ` +
5960 `When activated, the quota will allow you to ask up to ${ rateLimitQuestions } question(s) per ${ rateLimitMinutes } minute(s)` }
6061 { data && (
6162 < >
@@ -143,7 +144,7 @@ const StudentQueue = (props: StudentQueueProps) => {
143144 queue . questionsAsked || 0
144145 } user${
145146 queue . questionsAsked === 1 ? "" : "s"
146- } in queue`}
147+ } in ${ isAprilFools ? "stack" : " queue" } `}
147148 color = "blue"
148149 icon = "users"
149150 />
@@ -216,10 +217,10 @@ const StudentQueue = (props: StudentQueueProps) => {
216217 ) }
217218 { ! queue . active && questions . length === 0 && (
218219 < Message
219- header = "Queue Closed"
220+ header = { ` ${ QUEUE_LABEL } Closed` }
220221 error
221222 icon = "calendar times outline"
222- content = " This queue is currently closed. Contact course staff if you think this is an error."
223+ content = { ` This ${ queueLabel } is currently closed. Contact course staff if you think this is an error.` }
223224 />
224225 ) }
225226 { queue . active &&
0 commit comments