Skip to content

Commit

Permalink
fixup! Port breach alert email to new email template
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Aug 1, 2024
1 parent 6abb522 commit 26e4301
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export const EmailTrigger = (props: Props) => {
const [selectedEmailAddress, setSelectedEmailAddress] = useState(
props.emailAddresses[0],
);
const [isSendingVerification, setIssSendingVerification] = useState(false);
const [isSendingBreachAlert, setIssSendingBreachAlert] = useState(false);
const [isSendingVerification, setIsSendingVerification] = useState(false);
const [isSendingBreachAlert, setIsSendingBreachAlert] = useState(false);
const [
isSendingMonthlyActivityOverview,
setIssSendingMonthlyActivityOverview,
setIsSendingMonthlyActivityOverview,
] = useState(false);
const [firstDataBrokerRemovalFixed, setFirstDataBrokerRemovalFixed] =
useState(false);
Expand Down Expand Up @@ -62,9 +62,9 @@ export const EmailTrigger = (props: Props) => {
variant="primary"
isLoading={isSendingVerification}
onPress={() => {
setIssSendingVerification(true);
setIsSendingVerification(true);
void triggerVerificationEmail(selectedEmailAddress).then(() => {
setIssSendingVerification(false);
setIsSendingVerification(false);
});
}}
>
Expand All @@ -74,9 +74,9 @@ export const EmailTrigger = (props: Props) => {
variant="primary"
isLoading={isSendingMonthlyActivityOverview}
onPress={() => {
setIssSendingMonthlyActivityOverview(true);
setIsSendingMonthlyActivityOverview(true);
void triggerMonthlyActivity(selectedEmailAddress).then(() => {
setIssSendingMonthlyActivityOverview(false);
setIsSendingMonthlyActivityOverview(false);
});
}}
>
Expand All @@ -86,9 +86,9 @@ export const EmailTrigger = (props: Props) => {
variant="primary"
isLoading={isSendingBreachAlert}
onPress={() => {
setIssSendingBreachAlert(true);
setIsSendingBreachAlert(true);
void triggerBreachAlert(selectedEmailAddress).then(() => {
setIssSendingBreachAlert(false);
setIsSendingBreachAlert(false);
});
}}
>
Expand Down

0 comments on commit 26e4301

Please sign in to comment.