first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import _ from 'lodash'
|
||||
|
||||
export function parseEmails(emailsString: string) {
|
||||
const regexBySpaceOrComma = /[\s,]+/
|
||||
let emails = emailsString.split(regexBySpaceOrComma)
|
||||
emails = _.map(emails, email => email.trim())
|
||||
emails = _.filter(emails, email => email.indexOf('@') !== -1)
|
||||
return emails
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
export type GroupUserAlertVariant =
|
||||
| 'resendManagedUserInviteSuccess'
|
||||
| 'resendManagedUserInviteFailed'
|
||||
| 'resendGroupInviteSuccess'
|
||||
| 'resendGroupInviteFailed'
|
||||
| 'resendInviteTooManyRequests'
|
||||
| 'resendSSOLinkInviteSuccess'
|
||||
| 'resendSSOLinkInviteFailed'
|
||||
| 'unlinkedSSO'
|
||||
|
||||
export type GroupUserAlert =
|
||||
| {
|
||||
variant: GroupUserAlertVariant
|
||||
email?: string
|
||||
}
|
||||
| undefined
|
Reference in New Issue
Block a user