Skip to content

Commit

Permalink
Revert "disabled payout (#3441)" (#3443)
Browse files Browse the repository at this point in the history
This reverts commit 42c5b61.
  • Loading branch information
thelostone-mc authored May 15, 2024
1 parent 902b119 commit f7768f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,11 @@ export function PayProjectsTable(props: {
<button
type="button"
data-testid="pay-out-funds-button"
className="block m-3 rounded-md bg-indigo-600 py-1.5 px-3 text-center text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 disabled:text-slate-500 disabled:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
// disabled={selectedProjects.length === 0}
disabled={true}
className="block m-3 rounded-md bg-indigo-600 py-1.5 px-3 text-center text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 disabled:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
disabled={selectedProjects.length === 0}
onClick={() => handlePayOutFunds()}
>
Payout funds (Disabled)
Payout funds
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe("View Fund Grantees", () => {
expect(screen.getByText("Wallet Address")).toBeInTheDocument();
expect(screen.getByText("Matching %")).toBeInTheDocument();
expect(screen.getByText("Payout Amount")).toBeInTheDocument();
expect(screen.getByText("Payout funds (Disabled)")).toBeInTheDocument();
expect(screen.getByText("Payout funds")).toBeInTheDocument();
});

it("displays exact list of projects in table which are to be paid", async () => {
Expand All @@ -246,7 +246,7 @@ describe("View Fund Grantees", () => {
).toBeInTheDocument();
});

it.skip("Should show the confirmation modal and close on cancel", async () => {
it("Should show the confirmation modal and close on cancel", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: ethers.utils.parseEther("1000") },
error: null,
Expand All @@ -272,7 +272,7 @@ describe("View Fund Grantees", () => {
expect(screen.queryByText("Confirm Decision")).not.toBeInTheDocument();
});

it.skip("Should show the progress modal", async () => {
it("Should show the progress modal", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: ethers.utils.parseEther("1000") },
error: null,
Expand All @@ -296,7 +296,7 @@ describe("View Fund Grantees", () => {
});
});

it.skip("Should show the warning when not enough funds in contract", async () => {
it("Should show the warning when not enough funds in contract", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: "0" },
error: null,
Expand Down

0 comments on commit f7768f5

Please sign in to comment.