Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2025
1 parent 4b0faa6 commit 831b24b
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions taxonium_website/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,24 +221,25 @@ function App() {
</h1>
<div className="flex items-center">
{window.screen.width >= 600 &&
(!new URL(window.location.href).pathname.substring(1)
||
treeConfig.map(x=>x[0]).contains(new URL(window.location.href).pathname.substring(1)))
&&
( // Hide the menu on mobile
<Select
value={new URL(window.location.href).pathname.substring(1)}
onChange={(e) => setSelectedTree(e.target.value)}
className={"mr-4 !bg-gray-50 ml-4"}
>
<option value="">Select a tree</option>
{Object.entries(treeConfig).map(([path, config]) => (
<option key={path} value={path}>
{path}
</option>
))}
</Select>
)}
(!new URL(window.location.href).pathname.substring(1) ||
treeConfig
.map((x) => x[0])
.contains(
new URL(window.location.href).pathname.substring(1)
)) && ( // Hide the menu on mobile
<Select
value={new URL(window.location.href).pathname.substring(1)}
onChange={(e) => setSelectedTree(e.target.value)}
className={"mr-4 !bg-gray-50 ml-4"}
>
<option value="">Select a tree</option>
{Object.entries(treeConfig).map(([path, config]) => (
<option key={path} value={path}>
{path}
</option>
))}
</Select>
)}
<button
onClick={() => setAboutEnabled(true)}
className="text-white font-bold hover:underline flex items-center"
Expand Down

0 comments on commit 831b24b

Please sign in to comment.