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 b92b912
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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>
);
}
1 change: 1 addition & 0 deletions src/features/navSlices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const initialNavState: NavState = NavModel.getValue({
openInstant: false,
sidebarWidth: 300,
});
initialNavState.openInstant = true;

const navSlice = createSlice({
name: 'nav',
Expand Down

0 comments on commit b92b912

Please sign in to comment.