diff --git a/src/components/application/InstantBoard.tsx b/src/components/application/InstantBoard.tsx index 3306eed8..f0bf4d8c 100644 --- a/src/components/application/InstantBoard.tsx +++ b/src/components/application/InstantBoard.tsx @@ -1,17 +1,28 @@ import React from 'react'; export function InstantBoard() { + const oldURL = new URL(window.location.href); + const newHostname = oldURL.hostname.replace('-old', ''); + const newURL = `${oldURL.protocol}//${newHostname}${oldURL.port ? `:${oldURL.port}` : ''}`; + return (
- Comming Soon... +

CodePair v2 is released! 🎉 You can now share your code with your friends and code together in real-time.

+

+ Visit  + {newURL} +  to start coding together. +

); } diff --git a/src/pages/PageLayout.tsx b/src/pages/PageLayout.tsx index f0fabb46..63fd066f 100644 --- a/src/pages/PageLayout.tsx +++ b/src/pages/PageLayout.tsx @@ -207,7 +207,7 @@ export default function PageLayout({ children }: PageLayoutProps) { const menu = useSelector((state: AppState) => state.settingState.menu); const { classes } = useStyles({ open: navState.openTab, - openInstant: navState.openInstant, + openInstant: true, sidebarWidth: navState.sidebarWidth, } as LayoutProps); const location = useLocation();