Skip to content

Commit

Permalink
PR: QA Fixes #783,#784, #19413 (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttran-Therisa authored Oct 8, 2024
1 parent 2217160 commit 8ca1494
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/templates/layouts/event/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,16 @@ export const Event = ({
</div>
)}
{/* Registration */}
{registrationRequired && (
{registrationRequired && eventCTA && (
<div className="vads-u-display--flex vads-u-flex-direction--row vads-u-margin-bottom--3">
<p className="vads-u-margin--0 vads-u-margin-right--0p5">
{eventCTA == 'register' && <strong>Registration:</strong>}
{eventCTA == 'apply' && <strong>Apply:</strong>}
{eventCTA == 'apply' && <strong>Application:</strong>}
{eventCTA == 'rsvp' && <strong>RSVP:</strong>}
</p>
<p className="vads-u-margin--0">Required</p>
{eventCTA != 'more_details' && (
<p className="vads-u-margin--0">Required</p>
)}
</div>
)}
<div className="vads-u-display--flex vads-u-flex-direction--column vads-u-flex--1">
Expand All @@ -228,7 +230,7 @@ export const Event = ({
{link && (
<p className="vads-u-margin--0">
<a className="vads-c-action-link--green" href={link?.uri}>
{eventCTA
{eventCTA && eventCTA != 'more_details'
? eventCTA.toLowerCase() === 'rsvp'
? eventCTA.toUpperCase()
: eventCTA.charAt(0).toUpperCase() + eventCTA.slice(1)
Expand Down

0 comments on commit 8ca1494

Please sign in to comment.