Refactor: Move header login buttons to right side of flow name

This commit is contained in:
igorrCarvalho 2023-08-24 14:29:24 -03:00
commit f8d51b4882
2 changed files with 6 additions and 5 deletions

1
.gitattributes vendored
View file

@ -22,3 +22,4 @@
*.svg binary *.svg binary
*.ico binary *.ico binary
*.gif binary *.gif binary
*.csv binary

View file

@ -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="/">