File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
@plotly/dash-test-components/src/components
components/dash-core-components/src/components
dash/dash-renderer/src/wrapper Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ const AddPropsComponent = (props) => {
7
7
8
8
return (
9
9
< div id = { id } >
10
- { React . cloneElement ( children , { extras : {
10
+ { React . cloneElement ( children , {
11
11
receive : `Element #${ id } pass` ,
12
- } } ) }
12
+ } ) }
13
13
</ div >
14
14
) ;
15
15
} ;
Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ export default class ConfirmDialogProvider extends React.Component {
23
23
// Will lose the previous onClick of the child
24
24
const wrapClick = child =>
25
25
React . cloneElement ( child , {
26
- extras : {
27
- onClick : ( ) => setProps ( { displayed : true } ) ,
28
- } ,
26
+ onClick : ( ) => setProps ( { displayed : true } ) ,
29
27
} ) ;
30
28
31
29
return (
Original file line number Diff line number Diff line change @@ -39,17 +39,13 @@ type DashWrapperProps = {
39
39
* Path of the component in the layout.
40
40
*/
41
41
componentPath : DashLayoutPath ;
42
- /**
43
- * extras props to be merged with the dash props from the store.
44
- */
45
- extras ?: any ;
46
42
_dashprivate_error ?: any ;
47
43
} ;
48
44
49
45
function DashWrapper ( {
50
46
componentPath,
51
- extras ,
52
- _dashprivate_error
47
+ _dashprivate_error ,
48
+ ... extras
53
49
} : DashWrapperProps ) {
54
50
const dispatch = useDispatch ( ) ;
55
51
You can’t perform that action at this time.
0 commit comments