Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just display env instead of providing a link. #279

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export const Header = () => {
<div className="flex items-center gap-5">
<img src={Logo} alt="FluffyLabs logo" className="w-[90px] ml-3" />
<pre className="text-brand">PVM debugger</pre>
<pre className="text-white text-xs">
<a href="https://pvm-debugger.netlify.app/">64-bit beta</a>
</pre>
<Environment />
</div>
<div className="mr-3 text-white flex flex-row items-center justify-center gap-5">
<TooltipProvider>
Expand All @@ -29,3 +27,15 @@ export const Header = () => {
</div>
);
};

const Environment = () => {
const { host } = window.location;
let env = "PR preview";
if (host === "pvm.fluffylabs.dev") {
env = "prod";
} else if (host === "pvm-debugger.netlify.app") {
env = "beta";
}

return <pre className="text-white text-xs">{env}</pre>;
};
Loading