- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
import React from 'react';
export const EMAIL_DEFAULT = (email) => {
return {
hintType:"default",
text:""
}
}
export const EMAIL_SUCCESS = (email) => {
return {
hintType:"success",
text:["Great! We'll send a confirmation email to ",<strong key="successful-email">{email.toLowerCase()}</strong>]
}
}
export const EMAIL_SUGGESTION = (suggestion, clickHandler) => {
return {
hintType:"warning",
text:["Did you mean: ",<a href="javascript:void(0)" key="suggestion" onClick={()=>clickHandler(suggestion)}><span>{suggestion.address}@</span><em><strong>{suggestion.domain}</strong></em></a>]
}
}
export const EMAIL_INVALID = () => {
return {
hintType:"error",
text:"Please enter a valid email address."
}
}
export const PASSWORD_DEFAULT = (email) => {
return {
hintType:"default",
text:""
}
}
export const PASSWORD_SUCCESS = () => {
return {
hintType:"success",
text:"Perfect. Your password is secure."
}
}
export const PASSWORD_TOO_SHORT = () => {
return {
hintType:"error",
text:"Your new password must be 8 characters or longer."
}
}
export const PASSWORD_NO_UPPERCASE = () => {
return {
hintType:"error",
text:"Your password must include an uppercase letter and a number."
}
}
export const PASSWORD_NO_NUMBER = () => {
return {
hintType:"error",
text:"Your new password must include a number."
}
}
export const PASSWORD_NO_LOWERCASE = () => {
return {
hintType:"error",
text:"Your password must include a lowercase letter and a number."
}
}
export const DOB_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}
export const DOB_DEFAULT_HINT = () => {
return {
hintType:"default",
text:"You must be 18 to use Stash."
}
}
export const DOB_INVALID_DATE = () => {
return {
hintType:"error",
text:"Please enter a valid date."
}
}
export const DOB_UNDER_AGE = () => {
return {
hintType:"error",
text:"You must be 18 to use Stash."
}
}
export const FIRST_NAME_EMPTY = () => {
return {
hintType:"error",
text:"Please enter your legal first name."
}
}
export const FIRST_NAME_SUCCESS = () => {
return {
hintType:"success",
text:"Looks good."
}
}
export const LAST_NAME_EMPTY = () => {
return {
hintType:"error",
text:"Please enter your legal last name."
}
}
export const LAST_NAME_SUCCESS = () => {
return {
hintType:"success",
text:"Last name looks good."
}
}
export const SSN_DEFAULT = () => {
return {
hintType:"default",
text:"Stash is an SEC registered investment advisor and needs your SSN to verify your identity. Your data is encrypted on our secure server."
}
}
export const SSN_SUCCESS = () => {
return {
hintType:"success",
text:"SSN looks good."
}
}
export const SSN_INVALID = () => {
return {
hintType:"error",
text:"Please enter a valid Social Security Number."
}
}
export const TEL_DEFAULT = () => {
return {
hintType:"default",
text:"We'll send the app to this number."
}
}
export const TEL_SUCCESS = (tel) => {
return {
hintType:"success",
text:["Looks good. We'll send the app to ",<strong key="tel-success">{tel}</strong>]
}
}
export const TEL_INVALID = () => {
return {
hintType:"error",
text:"Please enter a valid phone number."
}
}
export const ADDRESS_1_EMPTY = () => {
return {
hintType:"error",
text:"Please enter your home address."
}
}
export const ADDRESS_1_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}
export const ADDRESS_1_NO_NUMBER = () => {
return {
hintType:"error",
text:"Please enter a street number."
}
}
export const ADDRESS_2_DEFAULT = () => {
return {
hintType:"warning",
text:"If you live in an apartment, unit, or condo, please enter it here."
}
}
export const ADDRESS_2_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}
export const ZIP_INVALID = () => {
return {
hintType:"error",
text:"Enter your ZIP."
}
}
export const ZIP_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}
export const CITY_EMPTY = () => {
return {
hintType:"error",
text:"Please enter your city."
}
}
export const CITY_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}
export const STATE_EMPTY = () => {
return {
hintType:"error",
text:"Please enter your state."
}
}
export const STATE_SUCCESS = () => {
return {
hintType:"success",
text:""
}
}