Skip to content

Commit 602c322

Browse files
committedMar 19, 2025·

File tree

1 file changed

+3
-1
lines changed
  • packages/documentation/src/components/DevicePreview

1 file changed

+3
-1
lines changed
 

‎packages/documentation/src/components/DevicePreview/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
import clsx from 'clsx';
1010
import './DevicePreview.scss';
11+
import useBaseUrl from '@docusaurus/useBaseUrl';
1112

1213
const DevicePreview = (props: {
1314
children: any;
@@ -16,6 +17,7 @@ const DevicePreview = (props: {
1617
}) => {
1718
// TODO: Show theme dynamic const theme = useTheme();
1819
const theme = 'theme-brand-dark';
20+
const url = useBaseUrl('/demo/v2/preview/mobile/');
1921

2022
return (
2123
<figure className="DevicePreview" style={props.style}>
@@ -28,7 +30,7 @@ const DevicePreview = (props: {
2830
<img src={props.image} alt="Device preview" />
2931
) : (
3032
<iframe
31-
src={`/demo/v2/preview/mobile/?preview-mode=ios&preview-theme=${theme}#/`}
33+
src={`${url}?preview-mode=ios&preview-theme=${theme}#/`}
3234
></iframe>
3335
)}
3436
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.