Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: small fixes for zksync compatibility #2

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/dappkit
4 changes: 3 additions & 1 deletion src/I18n/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import clientEn from "../../../../I18n/en";

const en = {
pages: {
home: {
Expand Down Expand Up @@ -40,4 +42,4 @@ const en = {
},
};

export default en;
export default Object.assign(en, clientEn);
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/element/opportunity/OpportunityCell.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 1 addition & 3 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -20,7 +18,7 @@ export default function Footer() {
<Image
className="w-[125px] lg:w-[165px]"
alt={`${merklConfig.appName} logo`}
src={mode !== "dark" ? customerDarkLogo : customerLogo}
src={mode !== "dark" ? merklConfig.images.logoDark : merklConfig.images.logoLight}
/>
</Button>
<Socials />
Expand Down
20 changes: 15 additions & 5 deletions src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -120,7 +130,7 @@ export default function Header() {
<Group className="items-center" size="xl">
<Group className="hidden lg:flex items-center" size="xl">
{Object.entries(routes)
.filter(([key]) => !["home", "faq", "docs"].includes(key))
.filter(([key]) => !["home", "docs"].includes(key))
.map(([key, route]) => {
return (
<Button
Expand Down
1 change: 0 additions & 1 deletion src/index.generated.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
*
*/
export * from ".//entry.server";
export * from ".//root";
export { default as root } from ".//root";
export * from ".//entry.client";
Expand Down
Loading