Skip to content

Commit

Permalink
Add toast warning to resend checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Oct 1, 2023
1 parent 20aca6a commit 7bd4be1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/components/ClubEditPage/ApplicationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Field, Form, Formik } from 'formik'
import moment from 'moment-timezone'
import React, { ReactElement, useEffect, useMemo, useState } from 'react'
import Select from 'react-select'
import { toast } from 'react-toastify'
import styled from 'styled-components'

import { ALLBIRDS_GRAY, CLUBS_BLUE, MD, mediaMaxWidth, SNOW } from '~/constants'
Expand Down Expand Up @@ -278,6 +279,13 @@ const NotificationModal = (props: {
name="allow_resend"
as={CheckboxField}
label="Resend Emails"
onClick={(e) => {
if (e.target.checked) {
toast.warning(
'Resending emails will send emails to all applicants, even if they have already been notified.',
)
}
}}
helpText={
<strong>
If selected, will resend notifications to all applicants
Expand Down

0 comments on commit 7bd4be1

Please sign in to comment.