OperationCode/front-end

View on GitHub
common/constants/messages.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export const validationErrorMessages = {
  required: 'Required',
  email: 'Must be a valid email',
  emailsMatch: 'Emails must match',
  emailExists: 'A user is already registered with this e-mail address',
  password:
    'Minimum password requirements: 8 characters, 1 Lowercase Letter, 1 Uppercase Letter, 1 Number',
  passwordsMatch: 'Passwords must match',
  codeOfConduct: 'You must agree to our Code of Conduct',
  slackGuidelines: 'You must agree to our Slack workspace guidelines',
};

export const networkErrorMessages = {
  serverDown: 'Something is wrong on our end. Please try again later.',
};