diff --git a/app/routes/governance.motions.client.tsx b/app/routes/governance.motions.client.tsx index 919916b..b7c1fd5 100644 --- a/app/routes/governance.motions.client.tsx +++ b/app/routes/governance.motions.client.tsx @@ -1,6 +1,6 @@ import { useState, useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; -import { Card, Elevation, Spinner, Switch, Classes } from "@blueprintjs/core"; +import { Card, Elevation, Spinner, Switch, Classes, Icon } from "@blueprintjs/core"; import { useApi, useAccounts } from "app/components/Api"; import { DeriveCollectiveProposal } from "@polkadot/api-derive/types"; import useToaster from "app/hooks/useToaster"; @@ -274,6 +274,15 @@ export default function GovernanceMotions() { return ; } + if (motions.length === 0) { + return ( +
+ +
{t("governance.no_motions")}
+
+ ); + } + const isSelectedCouncilMember = selectedAddress ? isCouncilMember(selectedAddress) : false; return ( diff --git a/app/translations/en.json b/app/translations/en.json index 2e2e519..57e88d5 100644 --- a/app/translations/en.json +++ b/app/translations/en.json @@ -260,7 +260,8 @@ "bounty_next_action_active": "Waiting for bounty completion", "bounty_next_action_update_overdue": "Update from curator is overdue", "bounty_next_action_pending_payout": "Waiting for payout", - "bounty_next_action_claim_payout": "Claim payout" + "bounty_next_action_claim_payout": "Claim payout", + "no_motions": "No motions available." } } }