Skip to content

Commit 26b794c

Browse files
committed
Chore: Minor style updates
1 parent ba6d00e commit 26b794c

File tree

10 files changed

+177
-161
lines changed

10 files changed

+177
-161
lines changed

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"graphql-fields": "^2.0.3",
2323
"graphql-scalars": "^1.18.0",
2424
"helmet": "^6.0.0",
25-
"mongodb": "4.9",
25+
"mongodb": "^4.10.0",
2626
"pino": "^8.5.0",
2727
"pino-pretty": "^9.1.0",
2828
"reflect-metadata": "^0.1.13",

apps/client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
"dependencies": {
1414
"@apollo/client": "^3.6.9",
1515
"@builder.io/partytown": "^0.7.0",
16-
"@chakra-ui/icons": "^2.0.9",
16+
"@chakra-ui/icons": "^2.0.10",
1717
"@chakra-ui/react": "^2.3.2",
1818
"@emotion/react": "^11.10.4",
1919
"@emotion/styled": "^11.10.4",
20-
"@heroicons/react": "^2.0.10",
20+
"@heroicons/react": "^2.0.11",
2121
"@tanstack/react-table": "^8.5.13",
2222
"chakra-react-select": "^4.2.2",
2323
"chart.js": "^3.9.1",
2424
"database": "*",
2525
"framer-motion": "^7.3.6",
2626
"graphql": "^15.3.0",
27-
"next": "^12.2.5",
27+
"next": "^12.3.1",
2828
"next-sitemap": "^3.1.22",
2929
"pino": "^8.5.0",
3030
"pino-pretty": "^9.1.0",

apps/client/src/components/Card/IconCard.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import React from "react";
2-
import { Flex, Text, Skeleton, Link, Box } from "@chakra-ui/react";
2+
import {
3+
Flex,
4+
Text,
5+
Skeleton,
6+
Link,
7+
Box,
8+
useColorModeValue,
9+
} from "@chakra-ui/react";
310

411
import { Card } from "@/components/Card";
512
import { Icon } from "@/components/Icon";
@@ -15,12 +22,9 @@ type IconCardProps = {
1522
}[];
1623
} & React.ComponentProps<typeof Card>;
1724

18-
const IconCard = ({
19-
title,
20-
isLoaded = true,
21-
items,
22-
...props
23-
}: IconCardProps) => {
25+
const IconCard = ({ title, isLoaded, items, ...props }: IconCardProps) => {
26+
const iconColor = useColorModeValue("gray.500", "gray.300");
27+
2428
return (
2529
<Flex flexDir="column">
2630
<Text fontWeight="bold" mb={2}>
@@ -40,7 +44,7 @@ const IconCard = ({
4044

4145
return (
4246
<Flex key={index} align="center">
43-
<Icon {...icon} mr={4} />
47+
<Icon {...icon} mr={4} color={iconColor} />
4448

4549
{url && text ? (
4650
<Link href={url.href} isExternal>

apps/client/src/components/Layout/Sidebar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ const Sidebar = ({ children }: SidebarProps) => {
5858
</Drawer>
5959
{/* mobilenav */}
6060
<MobileNav display={{ base: "flex", md: "none" }} onOpen={onOpen} />
61-
<Box ml={{ base: 0, md: 60 }}>{children}</Box>
61+
<Box
62+
ml={{ base: 0, md: 60 }}
63+
bg={useColorModeValue("gray.50", "gray.900")}
64+
>
65+
{children}
66+
</Box>
6267
</Box>
6368
);
6469
};

apps/client/src/components/Official/Legislation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
const Legislation = () => {
1111
return (
1212
<Grid templateColumns={["1fr", null, "repeat(3, 1fr)"]} gap={8}>
13-
<Stack gap={8}>
13+
<Stack gap={8} flexDir={["row", null, "column"]} align="center">
1414
<VotedWithPartyChart />
1515
<PolarizationChart />
1616
</Stack>

apps/client/src/components/Official/OfficialHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const OfficialHeader = ({ photoUrl }: OfficialHeaderProps) => {
3030
return (
3131
<Grid
3232
templateRows="repeat(2, 1fr)"
33-
templateColumns="11rem 1fr"
33+
templateColumns="9rem 1fr"
3434
pb={4}
3535
borderWidth="0 1px"
3636
borderStyle="solid"

apps/client/src/components/Official/Stats/FinancialInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const FinancialInfo = () => {
3636
if (error) return <>&quot;Financial Info&quot; failed to load</>;
3737

3838
return (
39-
<Stack p={4}>
39+
<Stack>
4040
<Heading size="md" mb={4}>
4141
Financial Info
4242
</Heading>

packages/eslint-config-custom-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"access": "public"
88
},
99
"dependencies": {
10-
"@typescript-eslint/parser": "^5.37.0"
10+
"@typescript-eslint/parser": "^5.38.0"
1111
}
1212
}

packages/eslint-config-custom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"eslint-plugin-react": "^7.31.8"
1212
},
1313
"devDependencies": {
14-
"@typescript-eslint/parser": "^5.37.0",
14+
"@typescript-eslint/parser": "^5.38.0",
1515
"typescript": "^4.8.3"
1616
},
1717
"publishConfig": {

0 commit comments

Comments
 (0)