@sikka/hawa 0.0.86 → 0.0.87

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -6,9 +6,21 @@ import { HawaContainer } from "../../layout/HawaContainer";
6
6
  export const AppLanding = (props) => {
7
7
  return (
8
8
  <HawaContainer>
9
- <HawaButton fullWidth text={"Sign In"} />
10
- <HawaButton fullWidth text={"Sign Up"} />
11
- <HawaButton fullWidth text={"عربي"} />
9
+ <HawaButton
10
+ fullWidth
11
+ text={props.texts.signIn}
12
+ onClick={props.handleSignIn}
13
+ />
14
+ <HawaButton
15
+ fullWidth
16
+ text={props.texts.signUp}
17
+ onClick={props.handleSignUp}
18
+ />
19
+ <HawaButton
20
+ fullWidth
21
+ text={props.texts.langauge}
22
+ onClick={props.handleLangauge}
23
+ />
12
24
  </HawaContainer>
13
25
  );
14
26
  };
@@ -17,5 +29,8 @@ AppLanding.propTypes = {
17
29
  signIn: PropTypes.string,
18
30
  signUp: PropTypes.string,
19
31
  language: PropTypes.string
20
- })
32
+ }),
33
+ handleSignIn: PropTypes.func,
34
+ handleSignUp: PropTypes.func,
35
+ handleLangauge: PropTypes.func
21
36
  };
@@ -9,7 +9,6 @@ export const HawaButton = ({
9
9
  text,
10
10
  isLoading = false,
11
11
  loadingText,
12
- onClick,
13
12
  ...props
14
13
  }) => {
15
14
  const [loading, setLoading] = useState(isLoading);
@@ -29,7 +28,6 @@ export const HawaButton = ({
29
28
  data-tooltip-target={tooltip}
30
29
  type="button"
31
30
  className={styles}
32
- onClick={() => console.log("clicking")}
33
31
  disabled={isLoading}
34
32
  {...props}
35
33
  >
@@ -57,6 +55,5 @@ HawaButton.PropTypes = {
57
55
  iconOnly: PropTypes.bool,
58
56
  text: PropTypes.string,
59
57
  isLoading: PropTypes.bool,
60
- loadingText: PropTypes.string,
61
- onClick : PropTypes.func
58
+ loadingText: PropTypes.string
62
59
  };