Skip to content

Commit

Permalink
MHV-66726 Data-Dog-Tagging-Update-Settings (#34541)
Browse files Browse the repository at this point in the history
* Updated Data Dog taggin in settings

* Removed Opt from Data Dog tag

* Added 'Opt out - Modal' and 'Opt in - Modal' to primaryButtonText & secondaryButtonText

* Returned sendDataDogAction and secondaryButtonText string to original state
  • Loading branch information
tynyttie authored Feb 7, 2025
1 parent 301cd0e commit a0bcb2d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ const SettingsPage = () => {
text={isSharing ? 'Opt out' : 'Opt in'}
onClick={() => {
setShowSharingModal(true);
sendDataDogAction(isSharing ? 'Opt out' : 'Opt in');
sendDataDogAction(
isSharing ? 'Opt out - Settings page' : 'Opt in - Settings page',
);
// If you want to focus an element, you can call it here or handle it elsewhere
}}
/>
Expand All @@ -165,7 +167,7 @@ const SettingsPage = () => {
const title = `Opt ${
isSharing ? 'out of' : 'back in to'
} sharing your electronic health information?`;
const primaryButtonText = isSharing ? 'Opt out' : 'Opt in';
const primaryButtonText = isSharing ? 'Opt out - Modal' : 'Opt in - Modal';
const secondaryButtonText = isSharing ? "Don't opt out" : "Don't opt in";
return (
<VaModal
Expand Down

0 comments on commit a0bcb2d

Please sign in to comment.