Skip to content

Commit 9d83681

Browse files
achen2401Amy Chen
and
Amy Chen
authored
add additional resources to Patient Education Resources section (#211)
Co-authored-by: Amy Chen <[email protected]>
1 parent c80c590 commit 9d83681

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

public/assets/data/patientEducationReferences.json

+27
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,33 @@
3737
"size": "487 KB"
3838
}
3939
},
40+
{
41+
"link": {
42+
"title": "Naloxone Information Sheet",
43+
"className": "education",
44+
"url": "{process.env.PUBLIC_URL}/assets/files/NaloxoneInformationSheet.pdf",
45+
"type": "PDF",
46+
"size": "142 KB"
47+
}
48+
},
49+
{
50+
"link": {
51+
"title": "Naloxone Instruction (English)",
52+
"className": "education",
53+
"url": "https://20797746.fs1.hubspotusercontent-na1.net/hubfs/20797746/Narcan%20Nasal%20Spray%204%20mg%20OTC%20Quick%20Start%20Guide.pdf",
54+
"type": "PDF",
55+
"size": "142 KB"
56+
}
57+
},
58+
{
59+
"link": {
60+
"title": "Naloxone Instruction (Spanish)",
61+
"className": "education",
62+
"url": "https://narcan.com/hubfs/2024-Website-Assets/Spanish%20Files/NARCAN%20Instructions%20for%20Use.pdf?hsLang=en",
63+
"type": "PDF",
64+
"size": "674 KB"
65+
}
66+
},
4067
{
4168
"link": {
4269
"title": "Naloxone Patient / Public",
Binary file not shown.

src/helpers/formatit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function stringSubstitutionFormat(result, input, replacement) {
116116
*/
117117
export function linkFormat(result, input) {
118118
let isVideoLink = input['type'] === 'video' && input['embedVideoSrc'];
119-
const referenceURL = input["url"];
119+
const referenceURL = String(input["url"]).replace("{process.env.PUBLIC_URL}", process.env.PUBLIC_URL);
120120
if (isVideoLink) {
121121
return (
122122
<VideoLink

0 commit comments

Comments
 (0)