Refactor: Move header login buttons to right side of flow name
This commit is contained in:
parent
76db1b011c
commit
f8d51b4882
2 changed files with 6 additions and 5 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
|
@ -21,4 +21,5 @@
|
|||
*.mp4 binary
|
||||
*.svg binary
|
||||
*.ico binary
|
||||
*.gif binary
|
||||
*.gif binary
|
||||
*.csv binary
|
||||
|
|
@ -27,6 +27,10 @@ export default function Header(): JSX.Element {
|
|||
<Link to="/">
|
||||
<span className="ml-4 text-2xl">⛓️</span>
|
||||
</Link>
|
||||
|
||||
{flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (
|
||||
<MenuBar flows={flows} tabId={tabId} />
|
||||
)}
|
||||
{location.pathname === "/admin" && (
|
||||
<Button
|
||||
onClick={() => {
|
||||
|
|
@ -56,10 +60,6 @@ export default function Header(): JSX.Element {
|
|||
Admin page
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (
|
||||
<MenuBar flows={flows} tabId={tabId} />
|
||||
)}
|
||||
</div>
|
||||
<div className="round-button-div">
|
||||
<Link to="/">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue