@sikka/hawa 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
HawaTextField,
|
|
4
|
-
HawaLogoButton,
|
|
5
|
-
HawaAlert,
|
|
6
|
-
HawaButton
|
|
7
|
-
} from "../../elements";
|
|
8
|
-
import { Controller, useForm } from "react-hook-form";
|
|
2
|
+
import { HawaButton } from "../../elements";
|
|
9
3
|
import PropTypes from "prop-types";
|
|
10
4
|
import { HawaContainer } from "../../layout/HawaContainer";
|
|
11
5
|
|
|
12
6
|
export const AppLanding = (props) => {
|
|
13
|
-
const methods = useForm();
|
|
14
|
-
const {
|
|
15
|
-
formState: { errors },
|
|
16
|
-
handleSubmit,
|
|
17
|
-
control
|
|
18
|
-
} = methods;
|
|
19
|
-
|
|
20
7
|
return (
|
|
21
8
|
<HawaContainer>
|
|
22
9
|
<HawaButton fullWidth text={"Sign In"} />
|
|
@@ -26,37 +13,9 @@ export const AppLanding = (props) => {
|
|
|
26
13
|
);
|
|
27
14
|
};
|
|
28
15
|
AppLanding.propTypes = {
|
|
29
|
-
/**
|
|
30
|
-
* An object of all the texts in the blocks
|
|
31
|
-
*/
|
|
32
16
|
texts: PropTypes.shape({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
usernameLabel: PropTypes.string,
|
|
38
|
-
usernamePlaceholder: PropTypes.string,
|
|
39
|
-
usernameRequired: PropTypes.string,
|
|
40
|
-
passwordLabel: PropTypes.string,
|
|
41
|
-
passwordPlaceholder: PropTypes.string,
|
|
42
|
-
passwordRequiredText: PropTypes.string,
|
|
43
|
-
forgotPasswordText: PropTypes.string,
|
|
44
|
-
newUserText: PropTypes.string,
|
|
45
|
-
signUpText: PropTypes.string,
|
|
46
|
-
signInText: PropTypes.string,
|
|
47
|
-
googleButtonLabel: PropTypes.string,
|
|
48
|
-
githubButtonLabel: PropTypes.string,
|
|
49
|
-
twitterButtonLabel: PropTypes.string
|
|
50
|
-
}),
|
|
51
|
-
viaGoogle: PropTypes.bool,
|
|
52
|
-
viaGithub: PropTypes.bool,
|
|
53
|
-
viaTwitter: PropTypes.bool,
|
|
54
|
-
handleSignIn: PropTypes.func,
|
|
55
|
-
handleRouteToSignUp: PropTypes.func,
|
|
56
|
-
handleGoogleSignIn: PropTypes.func,
|
|
57
|
-
handleGithubSignIn: PropTypes.func,
|
|
58
|
-
handleTwitterSignIn: PropTypes.func,
|
|
59
|
-
handleForgotPassword: PropTypes.func,
|
|
60
|
-
|
|
61
|
-
withoutSignUp: PropTypes.bool
|
|
17
|
+
signIn: PropTypes.string,
|
|
18
|
+
signUp: PropTypes.string,
|
|
19
|
+
language: PropTypes.string
|
|
20
|
+
})
|
|
62
21
|
};
|
|
@@ -155,9 +155,9 @@ export const SignUpForm = (props) => {
|
|
|
155
155
|
isSearchable={false}
|
|
156
156
|
isClearable={false ?? false}
|
|
157
157
|
options={[
|
|
158
|
-
{ value: "
|
|
159
|
-
{ value: "
|
|
160
|
-
{ value: "
|
|
158
|
+
{ value: "friend", label: "From a friend" },
|
|
159
|
+
{ value: "ad", label: "Advertisement" },
|
|
160
|
+
{ value: "other", label: "Other" }
|
|
161
161
|
]}
|
|
162
162
|
onChange={(e, o) => console.log("chooo", e)}
|
|
163
163
|
onInputChange={(e, o) => console.log("changing", e)}
|