File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
source/library/components
py-script-provider-zustand-wrapper Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ import PyScriptProvider from "../py-script-provider/py-script-provider";
7
7
8
8
const PyScriptProviderZustandWrapper : FC <
9
9
PyScriptProviderZustandWrapperProperties
10
- > = ( { children, ...rest } : PyScriptProviderZustandWrapperProperties ) => {
10
+ > = ( {
11
+ children,
12
+ ...rest
13
+ } : PyScriptProviderZustandWrapperProperties ) : JSX . Element => {
11
14
const { setPyScript } = usePyScriptStore ( ) ;
12
15
return (
13
16
< PyScriptProvider
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ const PyScriptProvider: FC<PyScriptProviderProperties> = ({
40
40
} ;
41
41
} , [ setPyScript ] ) ;
42
42
return (
43
- < HelmetProvider { ...( helmetProviderProperties || helmetProviderProps ) } >
44
- < Helmet { ...( helmetProperties || helmetProps ) } >
43
+ < HelmetProvider { ...( helmetProviderProperties ?? helmetProviderProps ) } >
44
+ < Helmet { ...( helmetProperties ?? helmetProps ) } >
45
45
< link
46
46
rel = "stylesheet"
47
- { ...( cssProperties || cssProps ) }
48
- href = { cssSource || cssSrc }
47
+ { ...( cssProperties ?? cssProps ) }
48
+ href = { cssSource ?? cssSrc }
49
49
/>
50
- < script defer { ...( jsProperties || jsProps ) } src = { jsSource || jsSrc } />
50
+ < script defer { ...( jsProperties ?? jsProps ) } src = { jsSource ?? jsSrc } />
51
51
</ Helmet >
52
52
{ children }
53
53
</ HelmetProvider >
You can’t perform that action at this time.
0 commit comments