Skip to content
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 src/components/DAO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the DAO Avatar
address: string;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/DAOs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class InferredDAOs extends ComponentList<InferredProps, Component> {
key={`${entity.id}_${index}`}
address={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Member.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from "react";
import { Member as Entity, IMemberState as Data } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -9,9 +10,8 @@ import {
ComponentProps,
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";
import { Member as Entity, IMemberState as Data } from "@dorgtech/arc.js";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the member
address: string;
dao?: string | DAOEntity;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Members.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { IMemberQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -14,7 +15,6 @@ import {
ComponentListProps,
createFilterFromScope,
} from "../";
import { IMemberQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import { CreateContextFeed } from "../runtime/ContextFeed";

type Scopes = "DAO";
Expand Down Expand Up @@ -59,6 +59,7 @@ class InferredMembers extends ComponentList<InferredProps, Component> {
address={entity.coreState!.address}
dao={entity.coreState!.dao.entity}
config={config}
entity={entity}
>
{children}
</Component>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Queue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the Queue Avatar
id: string;
dao?: string | DAOEntity;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Queues.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { IQueueQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -14,7 +15,6 @@ import {
ComponentListProps,
createFilterFromScope,
} from "../";
import { IQueueQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import { CreateContextFeed } from "../runtime/ContextFeed";

type Scopes = "DAO";
Expand Down Expand Up @@ -57,6 +57,7 @@ class InferredQueues extends ComponentList<InferredProps, Component> {
dao={dao}
id={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reputation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the Reputation Token
address?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Reputations.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { IReputationQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -11,8 +12,6 @@ import {
ComponentListLogs,
ComponentListProps,
} from "../";

import { IReputationQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import { CreateContextFeed } from "../runtime/ContextFeed";

type RequiredProps = ComponentListProps<Entity, FilterOptions>;
Expand Down Expand Up @@ -44,6 +43,7 @@ class InferredReputations extends ComponentList<InferredProps, Component> {
key={`${entity.id}_${index}`}
address={entity.address}
config={config}
entity={entity}
>
{children}
</Component>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reward.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ComponentProps,
} from "../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Reward ID
id: string;
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/Rewards.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { IRewardQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -21,7 +22,6 @@ import {
createFilterFromScope,
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";
import { IRewardQueryOptions as FilterOptions } from "@dorgtech/arc.js";

type Scopes = "DAO" | "Member as beneficiary" | "Proposal" | "Token";

Expand Down Expand Up @@ -66,7 +66,12 @@ class InferredRewards extends ComponentList<InferredProps, Component> {
const { config } = this.props;

return (
<Component key={`${entity.id}_${index}`} id={entity.id} config={config}>
<Component
key={`${entity.id}_${index}`}
id={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Stake ID
id: string;
}
Expand Down
7 changes: 6 additions & 1 deletion src/components/Stakes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ class InferredStakes extends ComponentList<InferredProps, Component> {
}

return (
<Component key={`${entity.id}_${index}`} id={entity.id} config={config}>
<Component
key={`${entity.id}_${index}`}
id={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the Tag Avatar
id: string;
}
Expand Down
7 changes: 6 additions & 1 deletion src/components/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ class InferredTags extends ComponentList<InferredProps, Component> {
const { config } = this.props;

return (
<Component key={`${entity.id}_${index}`} id={entity.id} config={config}>
<Component
key={`${entity.id}_${index}`}
id={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../";
import { CreateContextFeed } from "../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Address of the Token
address?: string;
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Tokens.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { ITokenQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -11,7 +12,6 @@ import {
ComponentListLogs,
ComponentListProps,
} from "../";
import { ITokenQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import { CreateContextFeed } from "../runtime/ContextFeed";

type RequiredProps = ComponentListProps<Entity, FilterOptions>;
Expand Down Expand Up @@ -43,6 +43,7 @@ class InferredTokens extends ComponentList<InferredProps, Component> {
key={`${entity.id}_${index}`}
address={entity.address}
config={config}
entity={entity}
>
{children}
</Component>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Vote.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from "react";
import { Vote as Entity, IVoteState as Data } from "@dorgtech/arc.js";
import { Component, ComponentLogs, ComponentProps } from "../runtime";
import { CreateContextFeed } from "../runtime/ContextFeed";
import { Arc as Protocol, ArcConfig as ProtocolConfig } from "../protocol";
import { Vote as Entity, IVoteState as Data } from "@dorgtech/arc.js";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Vote ID
id: string;
}
Expand Down
9 changes: 7 additions & 2 deletions src/components/Votes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from "react";
import { Observable } from "rxjs";
import { IVoteQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import {
Arc as Protocol,
ArcConfig as ProtocolConfig,
Expand All @@ -18,7 +19,6 @@ import {
ComponentListProps,
createFilterFromScope,
} from "../";
import { IVoteQueryOptions as FilterOptions } from "@dorgtech/arc.js";
import { CreateContextFeed } from "../runtime/ContextFeed";

type Scopes = "DAO" | "Member as voter" | "Proposal";
Expand Down Expand Up @@ -66,7 +66,12 @@ class InferredVotes extends ComponentList<InferredProps, Component> {
}

return (
<Component key={`${entity.id}_${index}`} id={entity.id} config={config}>
<Component
key={`${entity.id}_${index}`}
id={entity.id}
config={config}
entity={entity}
>
{children}
</Component>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/Competition/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Plugin,
} from "../../../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Plugin ID
id?: string | Entity;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/Competition/Proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "../../../";
import { CreateContextFeed } from "../../../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Proposal ID
id?: string | Entity;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/ContributionReward/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Plugin,
} from "../../../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Plugin ID
id?: string | Entity;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/ContributionReward/Proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "../../../";
import { CreateContextFeed } from "../../../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Proposal ID
id?: string | Entity;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/ContributionRewardExt/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Plugin,
} from "../../../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Plugin ID
id?: string | Entity;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/plugins/ContributionRewardExt/Proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "../../../";
import { CreateContextFeed } from "../../../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Proposal ID
id?: string | Entity;
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/plugins/FundingRequest/Plugin.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import {
import {
FundingRequest as Entity,
IFundingRequestState as Data
IFundingRequestState as Data,
} from "@dorgtech/arc.js";
import { CreateContextFeed } from "../../../runtime/ContextFeed";
import {
Expand All @@ -13,7 +13,7 @@ import {
Plugin,
} from "../../../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Plugin ID
id?: string | Entity;
}
Expand Down Expand Up @@ -120,5 +120,5 @@ export {
FundingRequestPlugin,
InferredFundingRequestPlugin,
Entity as FundingRequestPluginEntity,
Data as FundingRequestPluginData
Data as FundingRequestPluginData,
};
8 changes: 4 additions & 4 deletions src/components/plugins/FundingRequest/Proposal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import {
import {
FundingRequestProposal as Entity,
IFundingRequestProposalState as Data
IFundingRequestProposalState as Data,
} from "@dorgtech/arc.js";
import {
Arc as Protocol,
Expand All @@ -13,7 +13,7 @@ import {
} from "../../../";
import { CreateContextFeed } from "../../../runtime/ContextFeed";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Proposal ID
id?: string | Entity;
}
Expand Down Expand Up @@ -119,5 +119,5 @@ export {
InferredFundingRequestProposal,
FundingRequestProposal,
Entity as FundingRequestProposalEntity,
Data as FundingRequestProposalData
Data as FundingRequestProposalData,
};
2 changes: 1 addition & 1 deletion src/components/plugins/GenericPlugin/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Plugin,
} from "../../../";

interface RequiredProps extends ComponentProps {
interface RequiredProps extends ComponentProps<Entity, Data> {
// Plugin ID
id?: string | Entity;
}
Expand Down
Loading