File tree Expand file tree Collapse file tree
app/web/features/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { useTranslation } from "i18n";
77import { DASHBOARD } from "i18n/namespaces" ;
88import Link from "next/link" ;
99import { Reminder } from "proto/account_pb" ;
10+ import { ReferenceType } from "proto/references_pb" ;
1011import {
1112 referenceTypeRoute ,
1213 routeToEditProfile ,
@@ -44,9 +45,12 @@ export default function ReminderItem({
4445 const { hostRequestId, otherUser, referenceType } =
4546 reminder . writeReferenceReminder ;
4647 title = t ( "reminder.write_reference.title" ) ;
47- description = t ( "reminder.write_reference.description" , {
48- name : otherUser . name ,
49- } ) ;
48+ description = t (
49+ referenceType === ReferenceType . REFERENCE_TYPE_SURFED
50+ ? "reminder.write_reference.description_surfed"
51+ : "reminder.write_reference.description_hosted" ,
52+ { name : otherUser . name } ,
53+ ) ;
5054 buttonText = t ( "reminder.write_reference.button" ) ;
5155 href = routeToLeaveReference (
5256 referenceTypeRoute [ referenceType ] ,
Original file line number Diff line number Diff line change 8181 },
8282 "write_reference" : {
8383 "title" : " Write a reference" ,
84- "description" : " Leave a reference for {{name}}'s stay" ,
84+ "description_surfed" : " Leave a reference for your stay at {{name}}'s" ,
85+ "description_hosted" : " Leave a reference for {{name}}'s stay" ,
8586 "button" : " Write reference"
8687 },
8788 "complete_profile" : {
You can’t perform that action at this time.
0 commit comments