File tree 2 files changed +14
-3
lines changed 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
3
export function InstantBoard ( ) {
4
+ const oldURL = new URL ( window . location . href ) ;
5
+ const newHostname = oldURL . hostname . replace ( '-old' , '' ) ;
6
+ const newURL = `${ oldURL . protocol } //${ newHostname } ${ oldURL . port ? `:${ oldURL . port } ` : '' } ` ;
7
+
4
8
return (
5
9
< div
6
10
style = { {
7
11
display : 'flex' ,
8
12
justifyContent : 'center' ,
9
- alignItems : 'center ' ,
13
+ alignItems : 'left ' ,
10
14
height : '100%' ,
11
15
overflow : 'hidden' ,
16
+ padding : 16 ,
17
+ flexDirection : 'column' ,
12
18
} }
13
19
>
14
- Comming Soon...
20
+ < p > CodePair v2 is released! 🎉 You can now share your code with your friends and code together in real-time.</ p >
21
+ < p >
22
+ Visit
23
+ < a href = { newURL } > { newURL } </ a >
24
+ to start coding together.
25
+ </ p >
15
26
</ div >
16
27
) ;
17
28
}
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export default function PageLayout({ children }: PageLayoutProps) {
207
207
const menu = useSelector ( ( state : AppState ) => state . settingState . menu ) ;
208
208
const { classes } = useStyles ( {
209
209
open : navState . openTab ,
210
- openInstant : navState . openInstant ,
210
+ openInstant : true ,
211
211
sidebarWidth : navState . sidebarWidth ,
212
212
} as LayoutProps ) ;
213
213
const location = useLocation ( ) ;
You can’t perform that action at this time.
0 commit comments