Skip to content

Commit

Permalink
[ECO-1805] update header (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBl69 authored Jun 22, 2024
1 parent 3ec95a3 commit 018c1a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/typescript/frontend/src/components/header/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export const NAVIGATE_LINKS = [
{ title: "home", path: ROUTES.home, width: "45px" },
{ title: "pools", path: ROUTES.pools, width: "52px" },
{ title: "launch emojicoin", path: ROUTES.launch, width: "158px" },
{ title: "start here", path: ROUTES.startHere, width: "100px" },
];
6 changes: 3 additions & 3 deletions src/typescript/frontend/src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ const Header: React.FC<HeaderProps> = ({ isOpen, setIsOpen }) => {

<Container>
<Flex my="30px" justifyContent="space-between" alignItems="center">
<Link href={ROUTES.home}>
<Link marginLeft="50px" href={ROUTES.home}>
<StyledClickItem>
<LogoIcon width="170px" cursor="pointer" />
</StyledClickItem>
</Link>

{isDesktop && (
<FlexGap gap="24px" alignItems="center">
<FlexGap marginRight="50px" gap="24px" alignItems="center">
{linksForCurrentPage.map(({ title, path, width }) => {
return (
<Link key={title} href={path}>
Expand All @@ -73,7 +73,7 @@ const Header: React.FC<HeaderProps> = ({ isOpen, setIsOpen }) => {
)}

{!isDesktop && (
<Button scale="lg" onClick={() => setIsOpen(!isOpen)}>
<Button marginRight="50px" scale="lg" onClick={() => setIsOpen(!isOpen)}>
{t("Menu")}
</Button>
)}
Expand Down
1 change: 1 addition & 0 deletions src/typescript/frontend/src/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export const ROUTES = {
launch: "/launch",
pools: "/pools",
verify: "/verify",
startHere: "",
} as const;

0 comments on commit 018c1a7

Please sign in to comment.