Skip to content

Commit bdcd8e3

Browse files
committed
Show v2 dialog (#295)
1 parent 91cb4a4 commit bdcd8e3

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
import React from 'react';
22

33
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+
48
return (
59
<div
610
style={{
711
display: 'flex',
812
justifyContent: 'center',
9-
alignItems: 'center',
13+
alignItems: 'left',
1014
height: '100%',
1115
overflow: 'hidden',
16+
padding: 16,
17+
flexDirection: 'column',
1218
}}
1319
>
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&nbsp;
23+
<a href={newURL}>{newURL}</a>
24+
&nbsp;to start coding together.
25+
</p>
1526
</div>
1627
);
1728
}

src/pages/PageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function PageLayout({ children }: PageLayoutProps) {
207207
const menu = useSelector((state: AppState) => state.settingState.menu);
208208
const { classes } = useStyles({
209209
open: navState.openTab,
210-
openInstant: navState.openInstant,
210+
openInstant: true,
211211
sidebarWidth: navState.sidebarWidth,
212212
} as LayoutProps);
213213
const location = useLocation();

0 commit comments

Comments
 (0)