Skip to content

Commit

Permalink
Merge pull request #607 from DemocracyLab/companies_links_hotfix
Browse files Browse the repository at this point in the history
Companies Page: Learn More links point to prospectus
  • Loading branch information
marlonkeating authored May 7, 2021
2 parents aeeb87f + ce9b8c7 commit d132c82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ class CorporateHackathonController extends React.PureComponent<{||}, State> {
<div className="corporate-how-after">
<Button
variant="cta"
href="#contact"
href={cdn.document(
"2021+DemocracyLab+Corporate+Hackathon+Prospectus.pdf"
)}
className="corporate-cta-button"
>
Learn More
Expand Down Expand Up @@ -386,7 +388,9 @@ class CorporateHackathonController extends React.PureComponent<{||}, State> {
<div className="corporate-sponsorship-how-button">
<Button
variant="cta"
href="#contact"
href={cdn.document(
"2021+DemocracyLab+Sponsorship+Prospectus.pdf"
)}
className="corporate-cta-button"
>
Learn More
Expand Down
4 changes: 4 additions & 0 deletions common/components/utils/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class cdn {
backgroundImage: `url(${pathAndFile})`,
};
}

static document(fileName: string): string {
return window.STATIC_CDN_URL + "/documents/" + fileName;
}
}

export default cdn;

0 comments on commit d132c82

Please sign in to comment.