File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
polaris.shopify.com/pages Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change 1- import SandboxHeader from '../src/components/SandboxHeader' ;
2- import SandboxHelpDialog from '../src/components/SandboxHelpDialog' ;
31import { useEffect , useRef , useState } from 'react' ;
4- import { useRouter } from 'next/router' ;
52import type { InferGetServerSidePropsType , GetServerSideProps } from 'next' ;
3+ import { useRouter } from 'next/router' ;
4+
5+ import SandboxHeader from '../src/components/SandboxHeader' ;
6+ import SandboxHelpDialog from '../src/components/SandboxHelpDialog' ;
7+ import SandboxContainer from '../src/components/SandboxContainer' ;
68
79export const getServerSideProps : GetServerSideProps = async ( { query} ) => {
810 // We need to pass initial query param to our nested iframe
@@ -70,17 +72,7 @@ export default function Sandbox({
7072 } , [ router ] ) ;
7173
7274 return (
73- < div
74- className = "styles-for-site-but-not-polaris-examples"
75- style = { {
76- display : 'flex' ,
77- flexDirection : 'column' ,
78- width : '100%' ,
79- height : '100vh' ,
80- margin : 0 ,
81- padding : 0 ,
82- } }
83- >
75+ < SandboxContainer >
8476 < SandboxHeader
8577 setHelpIsOpen = { setHelpIsOpen }
8678 url = { typeof window !== 'undefined' ? window . location . href : '' }
@@ -98,6 +90,6 @@ export default function Sandbox({
9890 width = "100%"
9991 height = "100%"
10092 />
101- </ div >
93+ </ SandboxContainer >
10294 ) ;
10395}
You can’t perform that action at this time.
0 commit comments