Skip to content

Commit

Permalink
Remove Shiny for Python SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Aug 9, 2024
1 parent 78ac0da commit 128bfb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2,113 deletions.
18 changes: 5 additions & 13 deletions src/Components/HeaderBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react";
import shinyPyLogo from "../assets/shiny-for-python.svg";
import shinyRLogo from "../assets/shiny-logo.svg";
import shinyLogo from "../assets/shiny-logo.svg";
import { engineSwitch } from "../utils";
import type { AppEngine } from "./App";
import "./HeaderBar.css";
Expand Down Expand Up @@ -124,24 +123,17 @@ export default function HeaderBar({
python: "https://shiny.posit.co/py/",
r: "https://shiny.posit.co/",
};
const shinyLogo = engineSwitch(appEngine, shinyRLogo, shinyPyLogo);

return (
<div className="HeaderBar">
{
// eslint-disable-next-line react/jsx-no-target-blank
<a className="page-title" href={mainUrl[appEngine]} target="_blank">
<img className="shiny-logo" src={shinyLogo} alt="Shiny" />
{appEngine === "r" ? (
<span>
<span style={{ fontSize: "0.65em", marginLeft: "-2px" }}>
for
</span>{" "}
R
</span>
) : (
""
)}
<span>
<span style={{ fontSize: "0.65em", marginLeft: "-2px" }}>for</span>{" "}
{engineSwitch(appEngine, "R", "Python")}
</span>
</a>
}
<div>
Expand Down
Loading

0 comments on commit 128bfb4

Please sign in to comment.