Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: rebrand proposal information pane #1966

Merged
merged 2 commits into from
Feb 20, 2024
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
1 change: 0 additions & 1 deletion packages/desktop/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from './drawers'
export * from './filter'
export * from './menus'
export * from './modals'
export * from './panes'
export * from './popup'

export { default as AccountSwitcher } from './AccountSwitcher.svelte'
Expand Down
1 change: 0 additions & 1 deletion packages/desktop/components/panes/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
TrackedParticipationOverview,
} from '@iota/sdk/out/types'
import { Alert, Button, Table } from '@bloomwalletio/ui'
import { ProposalDetailsMenu, ProposalInformationPane, ProposalQuestion } from '@components'
import { ProposalDetailsMenu, ProposalQuestion } from '@components'
import { getVotingEvent } from '@contexts/governance/actions'
import {
clearParticipationEventStatusPoll,
Expand Down Expand Up @@ -35,7 +35,7 @@
import { visibleSelectedAccountTokens } from '@core/token/stores'
import { getBestTimeDuration, milestoneToDate } from '@core/utils'
import { PopupId, openPopup } from '@desktop/auxiliary/popup'
import { ProposalStatusPill } from '@views/governance'
import { ProposalInformationPane, ProposalStatusPill } from '@views/governance'
import { MarkdownBlock, Pane, Text, TextType } from '@ui'
import { onDestroy, onMount } from 'svelte'

Expand Down Expand Up @@ -242,7 +242,7 @@
]}
/>
</Pane>
<ProposalInformationPane classes="shrink-0" />
<ProposalInformationPane />
</div>
<Pane classes="w-3/5 h-full p-6 pr-3 flex flex-col justify-between">
<proposal-questions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<script lang="ts">
import { EventStatus } from '@iota/sdk/out/types'
import { Table } from '@bloomwalletio/ui'
import { Pane, Text } from '@ui'
import { Table, Text } from '@bloomwalletio/ui'
import { Pane } from '@ui'
import { formatDate, localize } from '@core/i18n'
import { DATE_FORMAT, milestoneToDate, truncateString } from '@core/utils'
import { networkStatus } from '@core/network/stores'
import { selectedProposal } from '@contexts/governance/stores'

export let classes: string = ''

interface IProposalDateData {
propertyKey: 'votingOpens' | 'countingStarts' | 'countingEnds' | 'countingEnded'
milestone: number
Expand Down Expand Up @@ -44,10 +42,8 @@
}
</script>

<Pane classes="p-6 h-fit {classes}">
<Text smaller classes="mb-5">
{localize('views.governance.details.proposalInformation.title')}
</Text>
<Pane classes="h-fit shrink-0 space-y-6 p-6">
<Text type="body2">{localize('views.governance.details.proposalInformation.title')}</Text>
<Table
items={[
{
Expand Down
1 change: 1 addition & 0 deletions packages/desktop/views/governance/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as ProposalInformationPane } from './ProposalInformationPane.svelte'
export { default as ProposalStatusInfo } from './ProposalStatusInfo.svelte'
export { default as ProposalStatusPill } from './ProposalStatusPill.svelte'
export { default as ProposalStatusTimelineTooltip } from './ProposalStatusTimelineTooltip.svelte'
Loading