File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
src/plugin-slots/ExtendedProfileFieldsSlot Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,22 @@ const ExtendedProfileFieldsSlot = () => {
12
12
const dispatch = useDispatch ( ) ;
13
13
const extendedProfileValues = useSelector ( ( state ) => state . profilePage . account . extendedProfile ) ;
14
14
15
+ const pluginProps = {
16
+ refreshUserProfile : ( username ) => dispatch ( fetchProfile ( username ) ) ,
17
+ updateUserProfile : patchProfile ,
18
+ profileFieldValues : extendedProfileValues ,
19
+ formComponents : {
20
+ SwitchContent,
21
+ EmptyContent,
22
+ EditableItemHeader,
23
+ } ,
24
+ } ;
25
+
15
26
return (
16
27
< PluginSlot
17
28
id = "org.openedx.frontend.profile.extended_profile_fields.v1"
18
29
idAliases = { [ 'extended_profile_fields_slot' ] }
19
- pluginProps = { {
20
- fetchProfile : ( username ) => dispatch ( fetchProfile ( username ) ) ,
21
- patchProfile,
22
- extendedProfileValues,
23
- SwitchContent,
24
- EmptyContent,
25
- EditableItemHeader,
26
- } }
30
+ pluginProps = { pluginProps }
27
31
/>
28
32
) ;
29
33
} ;
You can’t perform that action at this time.
0 commit comments