Skip to content

Commit

Permalink
add additional resources to Patient Education Resources section (#211)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Chen <[email protected]>
  • Loading branch information
achen2401 and Amy Chen authored Oct 11, 2024
1 parent c80c590 commit 9d83681
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions public/assets/data/patientEducationReferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,33 @@
"size": "487 KB"
}
},
{
"link": {
"title": "Naloxone Information Sheet",
"className": "education",
"url": "{process.env.PUBLIC_URL}/assets/files/NaloxoneInformationSheet.pdf",
"type": "PDF",
"size": "142 KB"
}
},
{
"link": {
"title": "Naloxone Instruction (English)",
"className": "education",
"url": "https://20797746.fs1.hubspotusercontent-na1.net/hubfs/20797746/Narcan%20Nasal%20Spray%204%20mg%20OTC%20Quick%20Start%20Guide.pdf",
"type": "PDF",
"size": "142 KB"
}
},
{
"link": {
"title": "Naloxone Instruction (Spanish)",
"className": "education",
"url": "https://narcan.com/hubfs/2024-Website-Assets/Spanish%20Files/NARCAN%20Instructions%20for%20Use.pdf?hsLang=en",
"type": "PDF",
"size": "674 KB"
}
},
{
"link": {
"title": "Naloxone Patient / Public",
Expand Down
Binary file added public/assets/files/NaloxoneInformationSheet.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/helpers/formatit.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function stringSubstitutionFormat(result, input, replacement) {
*/
export function linkFormat(result, input) {
let isVideoLink = input['type'] === 'video' && input['embedVideoSrc'];
const referenceURL = input["url"];
const referenceURL = String(input["url"]).replace("{process.env.PUBLIC_URL}", process.env.PUBLIC_URL);
if (isVideoLink) {
return (
<VideoLink
Expand Down

0 comments on commit 9d83681

Please sign in to comment.