Skip to content

Commit 1741d68

Browse files
committed
Add the alertbox correctly
Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent c159ec6 commit 1741d68

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

components/dashboard/src/App.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { StartWorkspaceModal } from "./workspaces/StartWorkspaceModal";
4747
import { parseProps } from "./start/StartWorkspace";
4848
import SelectIDEModal from "./settings/SelectIDEModal";
4949
import { StartPage, StartPhase } from "./start/StartPage";
50-
import { isGitpodIo, isLocalPreview } from "./utils";
50+
import { isGitpodIo } from "./utils";
5151
import { BlockedRepositorySettings } from "./admin/BlockedRepositorySettings";
5252

5353
const Setup = React.lazy(() => import(/* webpackPrefetch: true */ "./Setup"));
@@ -277,11 +277,6 @@ function App() {
277277
return <div></div>;
278278
}
279279

280-
if (isLocalPreview()) {
281-
window.location.host = "www.gitpod.io";
282-
return <div></div>;
283-
}
284-
285280
if (isGitpodIo() && window.location.pathname === "/" && window.location.hash === "" && !loading && !user) {
286281
if (!GitpodCookie.isPresent(document.cookie)) {
287282
window.location.href = `https://www.gitpod.io`;

components/dashboard/src/Menu.tsx

+9-3
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,15 @@ export default function Menu() {
494494
</nav>
495495
)}
496496
{isLP && (
497-
<Alert type="warning" className="mt-4 w-96">
498-
Visit https://www.gitpod.io/community-license?utm_source=local-preview for next steps on running
499-
a Production version of Gitpod
497+
<Alert type="warning" className="app-container rounded-md">
498+
This is a local-preview instance. Visit{" "}
499+
<a
500+
className="gp-link hover:text-gray-600"
501+
href="https://www.gitpod.io/community-license?utm_source=local-preview"
502+
>
503+
the community license page
504+
</a>{" "}
505+
for next steps on running a production version of Gitpod.
500506
</Alert>
501507
)}
502508
</header>

0 commit comments

Comments
 (0)