Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Dec 3, 2024
1 parent f56246d commit 4e32ae4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 21 deletions.
13 changes: 0 additions & 13 deletions src/api/services/campaign.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
import type { Campaign } from "@angleprotocol/merkl-api";
import { api } from "../index.server";

Expand Down Expand Up @@ -52,16 +51,4 @@ export abstract class CampaignService {
static async getByID(Id: string): Promise<Campaign | null> {
return null;
}
=======
class CampaignService {
// // ------ Fetch all campaigns
// async get(): Promise<Campaign[]> {
// const { data } = await api.v4.campaigns.index.get({ query: {} });
// return data;
// }
// // ------ Fetch a campaign by ID
// async getByID(Id: string): Promise<Campaign> {
// return "To implements";
// }
>>>>>>> 19f3164 (fix: loaders)
}
2 changes: 1 addition & 1 deletion src/api/services/opportunity.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Campaign, Opportunity } from "@merkl/api";
import type { Opportunity } from "@merkl/api";
import config from "merkl.config";
import { api } from "../index.server";

Expand Down
4 changes: 2 additions & 2 deletions src/components/element/campaign/CampaignTableRow.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Campaign } from "@merkl/api";
import { type Component, Group, Hash, Icon, OverrideTheme, Text, Value, mergeClass } from "dappkit";
import moment from "moment";
import Tooltip from "packages/dappkit/src/components/primitives/Tooltip";
import { useCallback, useMemo, useState } from "react";
import useCampaign from "src/hooks/resources/useCampaign";
import { formatUnits, parseUnits } from "viem";
import Chain from "../chain/Chain";
import Token from "../token/Token";
import { CampaignRow } from "./CampaignTable";
import RestrictionsCollumn from "./tableCollumns/RestrictionsCollumn";
import Tooltip from "packages/dappkit/src/components/primitives/Tooltip";
import moment from "moment";

export type CampaignTableRowProps = Component<{
campaign: Campaign;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Group } from "@ariakit/react";
import { useOutletContext } from "@remix-run/react";
import { Container, Space } from "packages/dappkit/src";
import CampaignLibrary from "src/components/element/campaign/CampaignLibrary";
import { ErrorContent } from "src/components/layout/ErrorContent";
import type { OutletContextOpportunity } from "./_merkl.opportunity.$chain.$type.$id";
import { useOutletContext } from "@remix-run/react";

export default function Index() {
const { opportunity } = useOutletContext<OutletContextOpportunity>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Index() {

return (
<Container>
<Space size="lg"/>
<Space size="lg" />
<Group size="lg">
<Group className="flex-col border-2 flex-1">
<Tooltip helper={null}>
Expand All @@ -68,7 +68,7 @@ export default function Index() {
<Text size={"xl"}>400k</Text>
</Group>
</Group>
<Space size="lg"/>
<Space size="lg" />
<LeaderboardLibrary leaderboard={leaderboard} />
</Container>
);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_merkl.opportunities.$chain.$type.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Index() {
const spaced = opportunity?.name.split(" ");

return spaced
.map((str) => {
.map(str => {
const key = str + crypto.randomUUID();
if (!str.match(/[\p{Letter}\p{Mark}]+/gu))
return [
Expand Down

0 comments on commit 4e32ae4

Please sign in to comment.