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
|
*.mp4 binary
|
||||||
*.svg binary
|
*.svg binary
|
||||||
*.ico binary
|
*.ico binary
|
||||||
*.gif binary
|
*.gif binary
|
||||||
|
*.csv binary
|
||||||
|
|
@ -27,6 +27,10 @@ export default function Header(): JSX.Element {
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<span className="ml-4 text-2xl">⛓️</span>
|
<span className="ml-4 text-2xl">⛓️</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
|
{flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (
|
||||||
|
<MenuBar flows={flows} tabId={tabId} />
|
||||||
|
)}
|
||||||
{location.pathname === "/admin" && (
|
{location.pathname === "/admin" && (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
@ -56,10 +60,6 @@ export default function Header(): JSX.Element {
|
||||||
Admin page
|
Admin page
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (
|
|
||||||
<MenuBar flows={flows} tabId={tabId} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="round-button-div">
|
<div className="round-button-div">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue