File tree 1 file changed +3
-1
lines changed
packages/documentation/src/components/DevicePreview
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
import clsx from 'clsx' ;
10
10
import './DevicePreview.scss' ;
11
+ import useBaseUrl from '@docusaurus/useBaseUrl' ;
11
12
12
13
const DevicePreview = ( props : {
13
14
children : any ;
@@ -16,6 +17,7 @@ const DevicePreview = (props: {
16
17
} ) => {
17
18
// TODO: Show theme dynamic const theme = useTheme();
18
19
const theme = 'theme-brand-dark' ;
20
+ const url = useBaseUrl ( '/demo/v2/preview/mobile/' ) ;
19
21
20
22
return (
21
23
< figure className = "DevicePreview" style = { props . style } >
@@ -28,7 +30,7 @@ const DevicePreview = (props: {
28
30
< img src = { props . image } alt = "Device preview" />
29
31
) : (
30
32
< iframe
31
- src = { `/demo/v2/preview/mobile/ ?preview-mode=ios&preview-theme=${ theme } #/` }
33
+ src = { `${ url } ?preview-mode=ios&preview-theme=${ theme } #/` }
32
34
> </ iframe >
33
35
) }
34
36
</ div >
You can’t perform that action at this time.
0 commit comments