UNPKG

1.69 kBPlain TextView Raw
1// tslint:disable
2/*
3 * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6 * the License. A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0/
9 *
10 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12 * and limitations under the License.
13 */
14// tslint:enable
15export default [
16 {
17 label: 'Username',
18 key: 'username',
19 required: false,
20 displayOrder: 1,
21 },
22 {
23 label: 'Password',
24 key: 'password',
25 required: true,
26 type: 'password',
27 displayOrder: 2,
28 },
29 {
30 label: 'Email',
31 key: 'email',
32 required: true,
33 type: 'email',
34 displayOrder: 3,
35 },
36 {
37 label: 'Phone Number',
38 key: 'phone_number',
39 required: true,
40 displayOrder: 4,
41 },
42];
43
44export const signUpWithEmailFields = [
45 {
46 label: 'Email',
47 key: 'email',
48 required: true,
49 type: 'email',
50 displayOrder: 1,
51 },
52 {
53 label: 'Password',
54 key: 'password',
55 required: true,
56 type: 'password',
57 displayOrder: 2,
58 },
59 {
60 label: 'Phone Number',
61 key: 'phone_number',
62 required: true,
63 displayOrder: 3,
64 },
65];
66
67export const signUpWithPhoneNumberFields = [
68 {
69 label: 'Phone Number',
70 key: 'phone_number',
71 required: true,
72 displayOrder: 1,
73 },
74 {
75 label: 'Password',
76 key: 'password',
77 required: true,
78 type: 'password',
79 displayOrder: 2,
80 },
81 {
82 label: 'Email',
83 key: 'email',
84 required: true,
85 type: 'email',
86 displayOrder: 3,
87 },
88];