Toggle navigation
Toggle navigation
This project
Loading...
Sign in
송용우
/
oss-Jaksimsamil
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
송용우
2020-06-22 14:55:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
419a4785c9d3b473d30a289934f76715c4728f67
419a4785
1 parent
95c511dc
Fixed CORS Error
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
jaksimsamil-page/src/containers/setting/SettingContainer.js
jaksimsamil-page/src/modules/profile.js
jaksimsamil-page/src/containers/setting/SettingContainer.js
View file @
419a478
...
...
@@ -6,12 +6,12 @@ import {
setBJID
,
getPROFILE
,
syncBJID
,
initializeProfile
,
}
from
'../../modules/profile'
;
import
SettingForm
from
'../../components/setting/SettingForm'
;
import
{
sync
}
from
'../../../node_modules/fast-glob/index'
;
const
SettingContainer
=
({
history
})
=>
{
const
dispatch
=
useDispatch
();
const
[
error
,
setError
]
=
useState
(
null
);
const
{
user
,
profile
}
=
useSelector
(({
user
,
profile
})
=>
({
user
:
user
.
user
,
profile
:
profile
,
...
...
@@ -42,11 +42,12 @@ const SettingContainer = ({ history }) => {
};
useEffect
(()
=>
{
console
.
log
(
'1'
);
let
username
=
JSON
.
parse
(
user
).
username
;
let
username
=
user
.
username
;
dispatch
(
getPROFILE
({
username
}));
//Do Init Form
},
[
dispatch
]);
return
()
=>
{
dispatch
(
initializeProfile
());
};
},
[
dispatch
,
user
]);
return
(
<
SettingForm
...
...
jaksimsamil-page/src/modules/profile.js
View file @
419a478
...
...
@@ -22,7 +22,7 @@ const [
SYNC_BJID_SUCCESS
,
SYNC_BJID_FAILURE
,
]
=
createRequestActionTypes
(
'profile/SYNC_BJID'
);
export
const
initializeProfile
=
createAction
(
INITIALIZE
);
export
const
syncBJID
=
createAction
(
SYNC_BJID
,
({
username
})
=>
({
username
,
}));
...
...
Please
register
or
login
to post a comment