Skip to content
Open
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
7 changes: 2 additions & 5 deletions src/components/debug/CreateOrganizationModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ const CONTRACTS = {
ORGANIZATION_FACTORY: '0x2Fa9318E1e29d7435EE9d23B687b10a9CDDD0d9e',
};

// Default aggregator (FutarchyFi)
const DEFAULT_AGGREGATOR = '0x767868874be4b5434bd351410b0b9a6e7f4c3aaf';

// Subgraph endpoint
import { AGGREGATOR_SUBGRAPH_URL as SUBGRAPH_URL } from '../../config/subgraphEndpoints';
// Subgraph endpoint + canonical default aggregator (FutarchyFi)
import { AGGREGATOR_SUBGRAPH_URL as SUBGRAPH_URL, DEFAULT_AGGREGATOR } from '../../config/subgraphEndpoints';

// ABIs (minimal)
const ORGANIZATION_FACTORY_ABI = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState, useEffect, useRef } from "react";
import { CheckIcon, CancelIcon, NewspaperIcon, EyeIcon } from "./Resources";
import Image from 'next/image';
import { getMarketUrl } from "../../../../utils/urlUtils";

// Move statusColors to the top level, after imports
const statusColors = {
Expand Down Expand Up @@ -150,7 +151,7 @@ const Proposals = ({
</a>
<span className={`text-2xl ${statusClasses.separator}`}></span>
<a
href={`/markets/${proposalID}`}
href={getMarketUrl(proposalID)}
className="border-2 border-futarchyGray4 rounded-xl w-1/2 py-3 px-[14px] text-center flex flex-row justify-center gap-[6px]"

>
Expand Down Expand Up @@ -372,7 +373,7 @@ export const ProposalsCard = ({
</div>
</div>
<a
href={`/markets/${proposalID}`}
href={getMarketUrl(proposalID)}
className="py-2 px-4 bg-black dark:bg-white text-white dark:text-black rounded-lg text-sm font-medium hover:bg-black/90 dark:hover:bg-white/90 transition-colors"
>
View Details
Expand Down Expand Up @@ -473,7 +474,7 @@ export const MobileProposalsCard = ({
</div>
</div>
<a
href={`/markets/${proposalID}`}
href={getMarketUrl(proposalID)}
className="py-2 px-4 bg-black dark:bg-white text-white dark:text-black rounded-lg text-sm font-medium hover:bg-black/90 dark:hover:bg-white/90 transition-colors"
>
View Details
Expand Down