Skip to content

Commit

Permalink
Show v2 dialog (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Dec 13, 2024
1 parent 91cb4a4 commit bdcd8e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions src/components/application/InstantBoard.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
alignItems: 'left',
height: '100%',
overflow: 'hidden',
padding: 16,
flexDirection: 'column',
}}
>
Comming Soon...
<p>CodePair v2 is released! 🎉 You can now share your code with your friends and code together in real-time.</p>
<p>
Visit&nbsp;
<a href={newURL}>{newURL}</a>
&nbsp;to start coding together.
</p>
</div>
);
}
2 changes: 1 addition & 1 deletion src/pages/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bdcd8e3

Please sign in to comment.