From d85aa6da2c8d84da670311bc3158f7dd36dbdde6 Mon Sep 17 00:00:00 2001 From: Picodes <41673773+Picodes@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:48:53 +0100 Subject: [PATCH] chore: small fixes for zksync compatibility (#2) --- packages/dappkit | 2 +- src/I18n/en.ts | 4 +++- .../HistoricalClaimsRow.tsx | 2 +- .../element/opportunity/OpportunityCell.tsx | 2 +- src/components/layout/Footer.tsx | 4 +--- src/components/layout/Header.tsx | 20 ++++++++++++++----- src/index.generated.ts | 1 - 7 files changed, 22 insertions(+), 13 deletions(-) diff --git a/packages/dappkit b/packages/dappkit index 22b0ee2..74d48bc 160000 --- a/packages/dappkit +++ b/packages/dappkit @@ -1 +1 @@ -Subproject commit 22b0ee2799df95ac05f173db177296b47338efb6 +Subproject commit 74d48bc2d2cd908ca76613ff476c4878b5946ad5 diff --git a/src/I18n/en.ts b/src/I18n/en.ts index 82d0b59..2b234bd 100644 --- a/src/I18n/en.ts +++ b/src/I18n/en.ts @@ -1,3 +1,5 @@ +import clientEn from "../../../../I18n/en"; + const en = { pages: { home: { @@ -40,4 +42,4 @@ const en = { }, }; -export default en; +export default Object.assign(en, clientEn); diff --git a/src/components/element/historicalClaimsLibrary/HistoricalClaimsRow.tsx b/src/components/element/historicalClaimsLibrary/HistoricalClaimsRow.tsx index 4044278..3f3eff5 100644 --- a/src/components/element/historicalClaimsLibrary/HistoricalClaimsRow.tsx +++ b/src/components/element/historicalClaimsLibrary/HistoricalClaimsRow.tsx @@ -1,5 +1,5 @@ import { Button, type Component, Icon, mergeClass } from "dappkit"; -import Time from "dappkit"; +import { Time } from "dappkit"; import { useWalletContext } from "dappkit"; import { useMemo } from "react"; import type { ClaimsService } from "../../../modules/claim/claim.service"; diff --git a/src/components/element/opportunity/OpportunityCell.tsx b/src/components/element/opportunity/OpportunityCell.tsx index aba1f4e..b09f34a 100644 --- a/src/components/element/opportunity/OpportunityCell.tsx +++ b/src/components/element/opportunity/OpportunityCell.tsx @@ -1,6 +1,6 @@ import { Link } from "@remix-run/react"; import type { BoxProps } from "dappkit"; -import { Box, Button, Divider, Dropdown, Group, Icon, Icons, PrimitiveTag, Text, Title, Value } from "dappkit"; +import { Box, Button, Divider, Dropdown, Fmt, Group, Icon, Icons, PrimitiveTag, Text, Title, Value } from "dappkit"; import { mergeClass } from "dappkit"; import { useOverflowingRef } from "dappkit"; import { useMemo } from "react"; diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 841ace4..5f6eed1 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -4,8 +4,6 @@ import Image from "../../../packages/dappkit/src/components/primitives/Image"; import merklDarkLogo from "../../assets/images/by-merkl-dark.svg"; import merklLogo from "../../assets/images/by-merkl.svg"; import merklConfig from "../../config"; -import customerDarkLogo from "../../customer/assets/images/customer-dark-logo.svg"; -import customerLogo from "../../customer/assets/images/customer-logo.svg"; import Socials from "../element/Socials"; export default function Footer() { @@ -20,7 +18,7 @@ export default function Footer() { {`${merklConfig.appName} diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index b994774..4fe6a00 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -1,7 +1,17 @@ import { useNavigate } from "@remix-run/react"; -import { Button, Container, Dropdown, Group, Icon, SCREEN_BREAKDOWNS, Select, WalletButton, useTheme } from "dappkit"; -import { Image } from "dappkit"; -import { useWalletContext } from "dappkit"; +import { + Button, + Container, + Dropdown, + Group, + Icon, + Image, + SCREEN_BREAKDOWNS, + Select, + WalletButton, + useTheme, + useWalletContext, +} from "dappkit"; import { motion } from "framer-motion"; import { useCallback, useMemo, useState } from "react"; import { useMediaQuery } from "react-responsive"; @@ -57,7 +67,7 @@ export default function Header() { // Include bridge route only if enabled in config merklConfig.header.bridge.enabled ? { bridge } : {}, rest, - ); + ) as (typeof merklConfig)["routes"]; }, [user]); const navigate = useNavigate(); @@ -120,7 +130,7 @@ export default function Header() { {Object.entries(routes) - .filter(([key]) => !["home", "faq", "docs"].includes(key)) + .filter(([key]) => !["home", "docs"].includes(key)) .map(([key, route]) => { return (