Skip to content

Commit 49f2067

Browse files
authored
Merge pull request #2656 from IntersectMBO/feat/bump-pillars-packages-versions
chore: bump @intersect.mbo/pdf-ui to v0.5.7
2 parents 18d5087 + 60ebe5a commit 49f2067

File tree

9 files changed

+216
-76
lines changed

9 files changed

+216
-76
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ changes.
2020

2121
### Changed
2222

23-
-
23+
- Bump @intersect.mbo/pdf-ui to v0.5.7
2424

2525
### Removed
2626

govtool/frontend/package-lock.json

Lines changed: 109 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

govtool/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@hookform/resolvers": "^3.3.1",
3030
"@intersect.mbo/govtool-outcomes-pillar-ui": "^1.0.0-beta.1",
3131
"@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8",
32-
"@intersect.mbo/pdf-ui": "^0.5.6",
32+
"@intersect.mbo/pdf-ui": "^0.5.7",
3333
"@mui/icons-material": "^5.14.3",
3434
"@mui/material": "^5.14.4",
3535
"@rollup/plugin-babel": "^6.0.4",

govtool/frontend/src/components/organisms/DashboardDrawerMobile.tsx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,28 @@ export const DashboardDrawerMobile = ({
7474
</IconButton>
7575
</Box>
7676
<Grid container direction="column" rowGap={4} mt={6}>
77-
{CONNECTED_NAV_ITEMS.map((navItem) => {
78-
return (
79-
<Grid item>
80-
<Link
81-
{...navItem}
82-
size="big"
83-
onClick={() => {
77+
{CONNECTED_NAV_ITEMS.map((navItem) => (
78+
<Grid item>
79+
<Link
80+
{...navItem}
81+
size="big"
82+
onClick={() => {
8483
if (navItem.newTabLink) {
8584
openInNewTab(navItem.newTabLink);
8685
}
8786
setIsDrawerOpen(false);
8887
}}
89-
isConnectWallet
90-
/>
91-
{navItem.childNavItems && (
92-
<Grid
93-
container
94-
direction="column"
95-
rowGap={4}
96-
mt={3}
97-
pl={3}
98-
>
99-
{navItem.childNavItems.map((childItem) => {
88+
isConnectWallet
89+
/>
90+
{navItem.childNavItems && (
91+
<Grid
92+
container
93+
direction="column"
94+
rowGap={4}
95+
mt={3}
96+
pl={3}
97+
>
98+
{navItem.childNavItems.map((childItem) => {
10099
if (
101100
!isProposalDiscussionForumEnabled &&
102101
childItem.dataTestId === "proposal-discussion-link"
@@ -127,11 +126,10 @@ export const DashboardDrawerMobile = ({
127126
/>
128127
);
129128
})}
130-
</Grid>
131-
)}
132129
</Grid>
133-
);
134-
})}
130+
)}
131+
</Grid>
132+
))}
135133
</Grid>
136134
</Box>
137135
{(voter?.isRegisteredAsDRep || voter?.isRegisteredAsSoleVoter) && (

govtool/frontend/src/components/organisms/Drawer.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,28 @@ export const Drawer = () => {
4646
px={3}
4747
rowGap={2}
4848
>
49-
{CONNECTED_NAV_ITEMS.map((navItem) => {
50-
return (
51-
<Grid item key={navItem.label}>
52-
<DrawerLink
53-
{...navItem}
54-
onClick={
49+
{CONNECTED_NAV_ITEMS.map((navItem) => (
50+
<Grid item key={navItem.label}>
51+
<DrawerLink
52+
{...navItem}
53+
onClick={
5554
navItem.newTabLink
5655
? () => openInNewTab(navItem.newTabLink)
5756
: undefined
5857
}
59-
/>
60-
{navItem.childNavItems && (
61-
<Grid
62-
columns={1}
63-
container
64-
display="flex"
65-
flex={1}
66-
flexDirection="column"
67-
mt={2}
68-
pl={3}
69-
rowGap={2}
70-
>
71-
{navItem.childNavItems.map((childItem) => {
58+
/>
59+
{navItem.childNavItems && (
60+
<Grid
61+
columns={1}
62+
container
63+
display="flex"
64+
flex={1}
65+
flexDirection="column"
66+
mt={2}
67+
pl={3}
68+
rowGap={2}
69+
>
70+
{navItem.childNavItems.map((childItem) => {
7271
if (
7372
!isProposalDiscussionForumEnabled &&
7473
childItem.dataTestId === "proposal-discussion-link"
@@ -96,11 +95,10 @@ export const Drawer = () => {
9695
/>
9796
);
9897
})}
99-
</Grid>
100-
)}
10198
</Grid>
102-
);
103-
})}
99+
)}
100+
</Grid>
101+
))}
104102
</Grid>
105103
<Box p={2}>
106104
{voter?.isRegisteredAsDRep && <DRepInfoCard />}

govtool/frontend/src/consts/paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export const OUTCOMES_PATHS = {
4040
governanceActionsOutcomes: "/outcomes",
4141
governanceActionOutcomes: "/outcomes/governance_actions/:id",
4242
governanceActionsLiveVoting: "/connected/governance_actions",
43-
};
43+
};

govtool/frontend/src/pages/Dashboard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export const Dashboard = () => {
2121
if (path === PATHS.dashboard) return t("dashboard.title");
2222
return findNavItem(CONNECTED_NAV_ITEMS, path) ?? "";
2323
};
24-
24+
2525
const findNavItem = (items: NavItem[], targetPath: string): string | null => (
2626
items.reduce<string | null>((result, item) => (
2727
result ?? (
28-
targetPath === item.navTo
29-
? item.label
28+
targetPath === item.navTo
29+
? item.label
3030
: (item.childNavItems ? findNavItem(item.childNavItems, targetPath) : null)
3131
)
3232
), null)

govtool/frontend/src/pages/GovernanceActionOutComes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Footer, TopNav } from "@/components/organisms";
2-
import { useCardano } from "@/context";
3-
import { useScreenDimension } from "@/hooks";
41
import Outcomes from "@intersect.mbo/govtool-outcomes-pillar-ui";
52
import { Box, CircularProgress } from "@mui/material";
63
import { Suspense } from "react";
4+
import { Footer, TopNav } from "@/components/organisms";
5+
import { useCardano } from "@/context";
6+
import { useScreenDimension } from "@/hooks";
77

88
export const GovernanceActionOutComesPillar = () => {
99
const { pagePadding } = useScreenDimension();

0 commit comments

Comments
 (0)