Skip to content

Commit

Permalink
remove: zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Nov 7, 2024
1 parent 978d446 commit 3aab8c6
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 347 deletions.
5 changes: 3 additions & 2 deletions app/routes/_merkl.(home).(opportunities).tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { Opportunity } from "@angleprotocol/merkl-api";
import { type LoaderFunctionArgs, json } from "@remix-run/node";
import { useLoaderData } from "@remix-run/react";
import { Space } from "dappkit";
import { fetchOpportunities } from "src/api/opportunity/opportunity";
import OpportunityLibrary from "src/components/element/opportunity/OpportunityLibrary";

export async function loader({ request }: LoaderFunctionArgs) {
const { data: opportunities, ...res } = await fetchOpportunities(request);
const { data: opportunities } = await fetchOpportunities(request);

return json({ opportunities });
}
Expand All @@ -16,7 +17,7 @@ export default function Index() {
return (
<>
<Space size="md" />
<OpportunityLibrary opportunities={opportunities} />
<OpportunityLibrary opportunities={opportunities as Opportunity[]} />
</>
);
}
9 changes: 0 additions & 9 deletions app/routes/_merkl.(home).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ export const config = createConfig({
},
});

const testThemes: { [name: string]: Coloring } = {
uniswap: createColoring(["#131313", "#FC72FF", "#131313"], ["#FFFFFF", "#FC72FF", "white"]),
"1inch": createColoring(["#131823", "#172A45", "#131823"], ["#FFFFFF", "#DDECFE", "white"]),
kiln: createColoring(["#000000", "#FF6521", "black"], ["#FFFFFF", "#FF6521", "white"]),
avocado: createColoring(["#0E121C", "#07A65D", "#0E121C"], ["#FFFFFF", "#07A65D", "white"]),
pancakeswap: createColoring(["#27262C", "#1FC7D4", "#27262C"], ["#FFFFFF", "#1FC7D4", "white"]),
optimism: createColoring(["#000000", "#FF0420", "black"], ["#FBFCFE", "#FF0420", "white"]),
};

export default function Index() {
return (
<Container>
Expand Down
2 changes: 2 additions & 0 deletions app/routes/_merkl.action.$action.(opportunities).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export async function loader({ params: { action: _action }, request }: LoaderFun

const { data: opportunities, ...res } = await fetchOpportunities(request, { action });

if (!opportunities) throw new Error("Unknown opportunity");

return json({ opportunities });
}

Expand Down
6 changes: 0 additions & 6 deletions src/assets/images/zksync-ignite-merkl.svg

This file was deleted.

Loading

0 comments on commit 3aab8c6

Please sign in to comment.