diff --git a/packages/desktop/components/index.ts b/packages/desktop/components/index.ts index 5872f5f63d..791ec804c9 100644 --- a/packages/desktop/components/index.ts +++ b/packages/desktop/components/index.ts @@ -20,7 +20,6 @@ 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' -export { default as ProposalQuestion } from './ProposalQuestion.svelte' export { default as SidebarTab } from './SidebarTab.svelte' export { default as StatusTile, type StatusTileProps } from './StatusTile.svelte' export { default as TitleBar } from './TitleBar.svelte' diff --git a/packages/desktop/views/dashboard/governance/views/ProposalDetailsView.svelte b/packages/desktop/views/dashboard/governance/views/ProposalDetailsView.svelte index 78bf36b421..a80901f6a0 100644 --- a/packages/desktop/views/dashboard/governance/views/ProposalDetailsView.svelte +++ b/packages/desktop/views/dashboard/governance/views/ProposalDetailsView.svelte @@ -6,7 +6,8 @@ TrackedParticipationOverview, } from '@iota/sdk/out/types' import { Alert, Button, Table } from '@bloomwalletio/ui' - import { ProposalDetailsMenu, ProposalInformationPane, ProposalQuestion } from '@components' + import { ProposalDetailsMenu, ProposalInformationPane } from '@components' + import { ProposalQuestion } from '@views/governance' import { getVotingEvent } from '@contexts/governance/actions' import { clearParticipationEventStatusPoll, diff --git a/packages/desktop/components/ProposalQuestion.svelte b/packages/desktop/views/governance/components/ProposalQuestion.svelte similarity index 81% rename from packages/desktop/components/ProposalQuestion.svelte rename to packages/desktop/views/governance/components/ProposalQuestion.svelte index 4cb3db9b70..ce2d2590e0 100644 --- a/packages/desktop/components/ProposalQuestion.svelte +++ b/packages/desktop/views/governance/components/ProposalQuestion.svelte @@ -2,16 +2,12 @@ import { AnswerStatus, EventStatus, Question } from '@iota/sdk/out/types' import { ProposalAnswer } from '@components' - import { Icon, Text } from '@ui' - import { FontWeight } from '@ui/enums' - import { TooltipIcon } from '@bloomwalletio/ui' + import { Icon, IconName, Text, TooltipIcon } from '@bloomwalletio/ui' import { ABSTAIN_VOTE_VALUE } from '@contexts/governance/constants' import { getPercentagesFromAnswerStatuses, IProposalAnswerPercentages } from '@contexts/governance' import { selectedProposal } from '@contexts/governance/stores' - import { Icon as IconEnum } from '@auxiliary/icon' - export let onQuestionClick: (questionIndex: number) => void export let onAnswerClick: (answerValue: number, questionIndex: number) => void @@ -49,23 +45,17 @@ {#each answers as answer, answerIndex} diff --git a/packages/desktop/views/governance/components/index.ts b/packages/desktop/views/governance/components/index.ts index 339e60d799..c71f3f3594 100644 --- a/packages/desktop/views/governance/components/index.ts +++ b/packages/desktop/views/governance/components/index.ts @@ -1,3 +1,4 @@ +export { default as ProposalQuestion } from './ProposalQuestion.svelte' export { default as ProposalStatusInfo } from './ProposalStatusInfo.svelte' export { default as ProposalStatusPill } from './ProposalStatusPill.svelte' export { default as ProposalStatusTimelineTooltip } from './ProposalStatusTimelineTooltip.svelte'