homeflowjs 0.9.33 → 0.9.34
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
package/reducers/user.reducer.js
CHANGED
package/user/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import MarketingPreferencesForm from './marketing-preferences-form/marketing-pre
|
|
|
8
8
|
import ForgottenPasswordForm from './forgotten-password-form/forgotten-password-form.component';
|
|
9
9
|
import ResetPasswordForm from './reset-password-form/reset-password-form.component';
|
|
10
10
|
import UserEditForm from './user-edit-form/user-edit-form.component';
|
|
11
|
+
import UserHoneypot from './user-honeypot/user-honeypot.component';
|
|
11
12
|
|
|
12
13
|
export {
|
|
13
14
|
withUser,
|
|
@@ -20,4 +21,5 @@ export {
|
|
|
20
21
|
MarketingPreferencesForm,
|
|
21
22
|
ForgottenPasswordForm,
|
|
22
23
|
ResetPasswordForm,
|
|
24
|
+
UserHoneypot,
|
|
23
25
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useSelector, useDispatch } from "react-redux";
|
|
3
|
+
import { setLocalUser } from "../../actions/user.actions";
|
|
4
|
+
|
|
5
|
+
const UserHoneypot = () => {
|
|
6
|
+
const userBody = useSelector(state => state.user.localUser?.body);
|
|
7
|
+
const dispatch = useDispatch();
|
|
8
|
+
|
|
9
|
+
const handleChange = (e) => {
|
|
10
|
+
dispatch(setLocalUser({ body: e.target.value }));
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<input
|
|
15
|
+
type="text"
|
|
16
|
+
name="hfhp"
|
|
17
|
+
value={userBody}
|
|
18
|
+
onChange={handleChange}
|
|
19
|
+
style={{
|
|
20
|
+
height: 0,
|
|
21
|
+
width: 0,
|
|
22
|
+
opacity: 0,
|
|
23
|
+
padding: 0,
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default UserHoneypot;
|