fix(app): refine beta channel badge
Opencode-Session: ses_0e22a6e11ffe3aB3BmVLK4TQ7X Opencode-Message: msg_f1dd85d480018fpawmUVWJV63c Opencode-Agent: build
This commit is contained in:
parent
6697cf3fd8
commit
75e4b8eb99
1 changed files with 8 additions and 7 deletions
|
|
@ -713,13 +713,14 @@ function TitlebarUpdateIconButton(props: { state: TitlebarUpdatePillState }) {
|
|||
}
|
||||
|
||||
function ChannelIndicator() {
|
||||
const channel = import.meta.env.VITE_OPENCODE_CHANNEL
|
||||
if (channel !== "beta" && channel !== "dev") return null
|
||||
|
||||
return (
|
||||
<>
|
||||
{["beta", "dev"].includes(import.meta.env.VITE_OPENCODE_CHANNEL) && (
|
||||
<div class="bg-icon-interactive-base text-[#FFF] font-medium px-2 rounded-sm uppercase font-mono">
|
||||
{import.meta.env.VITE_OPENCODE_CHANNEL.toUpperCase()}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
<div
|
||||
class={`text-[#FFF] font-medium px-2 rounded-sm uppercase font-mono ${channel === "beta" ? "bg-[#0488D1]" : "bg-icon-interactive-base"}`}
|
||||
>
|
||||
{channel === "beta" ? "β" : channel.toUpperCase()}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue