From 89ce0e0b2e165b14142f1f5c9c6e04a5e5ab8014 Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Tue, 20 Feb 2024 15:52:05 +0100 Subject: [PATCH] ui: rebrand proposal list (#1969) * move proposals * ui: rebrand proposallist --- packages/desktop/components/index.ts | 1 - .../views/GovernanceDashboardView.svelte | 5 +++-- .../governance/components/ProposalList.svelte} | 14 +++++--------- .../desktop/views/governance/components/index.ts | 1 + 4 files changed, 9 insertions(+), 12 deletions(-) rename packages/desktop/{components/Proposals.svelte => views/governance/components/ProposalList.svelte} (80%) diff --git a/packages/desktop/components/index.ts b/packages/desktop/components/index.ts index 89bbb87356..0d6715bbe2 100644 --- a/packages/desktop/components/index.ts +++ b/packages/desktop/components/index.ts @@ -15,7 +15,6 @@ export { default as FormattedBalance } from './FormattedBalance.svelte' export { default as NavbarContainer } from './NavbarContainer.svelte' export { default as NetworkCard } from './NetworkCard.svelte' export { default as NodeListTable } from './NodeListTable.svelte' -export { default as Proposals } from './Proposals.svelte' export { default as ProposalAnswer } from './ProposalAnswer.svelte' export { default as ProposalCard } from './ProposalCard.svelte' export { default as ProposalsDetails } from './ProposalsDetails.svelte' diff --git a/packages/desktop/views/dashboard/governance/views/GovernanceDashboardView.svelte b/packages/desktop/views/dashboard/governance/views/GovernanceDashboardView.svelte index 449864a9df..43d3fb1706 100644 --- a/packages/desktop/views/dashboard/governance/views/GovernanceDashboardView.svelte +++ b/packages/desktop/views/dashboard/governance/views/GovernanceDashboardView.svelte @@ -1,10 +1,11 @@ @@ -17,7 +18,7 @@
{#if Object.keys($registeredProposalsForSelectedAccount).length} - + {:else}
import { Filter, ProposalCard } from '@components' - import { Text, SearchInput } from '@ui' - import { FontWeight } from '@ui/enums' - + import { SearchInput } from '@ui' + import { Text } from '@bloomwalletio/ui' import { localize } from '@core/i18n' - import { proposalFilter, registeredProposalsForSelectedAccount } from '@contexts/governance/stores' import { isVisibleProposal, sortProposals } from '@contexts/governance/utils' @@ -31,15 +29,13 @@ - - {localize('views.governance.proposals.title')} - -
+ {localize('views.governance.proposals.title')} +
-
    +
      {#each sortedProposals as proposal} {/each} diff --git a/packages/desktop/views/governance/components/index.ts b/packages/desktop/views/governance/components/index.ts index 1cd1ec2186..10cc878208 100644 --- a/packages/desktop/views/governance/components/index.ts +++ b/packages/desktop/views/governance/components/index.ts @@ -1,4 +1,5 @@ export { default as ProposalInformationPane } from './ProposalInformationPane.svelte' +export { default as ProposalList } from './ProposalList.svelte' export { default as ProposalQuestion } from './ProposalQuestion.svelte' export { default as ProposalStatusInfo } from './ProposalStatusInfo.svelte' export { default as ProposalStatusPill } from './ProposalStatusPill.svelte'