Skip to content

Commit 279e932

Browse files
committed
Merge branch 'dev' into crowdin
2 parents 869871e + d4b7071 commit 279e932

File tree

139 files changed

+324
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+324
-183
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@types/react-dom": "^18.2.7",
5252
"eslint": "^8.45.0",
5353
"eslint-config-next": "^14.0.0",
54+
"eslint-config-prettier": "^9.0.0",
5455
"eslint-plugin-simple-import-sort": "^10.0.0",
5556
"image-size": "^1.0.2",
5657
"mdast-util-toc": "^7.0.0",

src/@chakra-ui/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { Tabs } from "./Tabs"
2828
import { Tag } from "./Tag"
2929
import { Text } from "./Text"
3030

31+
// eslint-disable-next-line import/no-anonymous-default-export
3132
export default {
3233
Accordion: accordionDefaultTheme,
3334
Alert,

src/components/Avatar/Avatar.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ export const WithUsername: Story = {
6060
render: (args) => (
6161
<HStack spacing={16}>
6262
<VStack>
63-
{["md", "sm"].map((size) => (
64-
<Avatar size={size} {...args} />
63+
{["md", "sm"].map((size, idx) => (
64+
<Avatar key={idx} size={size} {...args} />
6565
))}
6666
</VStack>
6767
<VStack>
68-
{["md", "sm"].map((size) => (
69-
<Avatar size={size} direction="column" {...args} />
68+
{["md", "sm"].map((size, idx) => (
69+
<Avatar key={idx} size={size} direction="column" {...args} />
7070
))}
7171
</VStack>
7272
</HStack>

src/components/BannerNotification/DismissableBanner.stories.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export const DismissableBannerStory: StoryObj<typeof DismissableBanner> = {
2020
render: () => {
2121
const children = <div>{bannerText}</div>
2222
return (
23-
<DismissableBanner
24-
children={children}
25-
storageKey={dismissableBannerStoryPageKey}
26-
/>
23+
<DismissableBanner storageKey={dismissableBannerStoryPageKey}>
24+
{children}
25+
</DismissableBanner>
2726
)
2827
},
2928
}

src/components/Banners/DismissableBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const DismissableBanner: React.FC<IProps> = ({ children, storageKey }) => {
1717
useEffect(() => {
1818
const isDismissed = localStorage.getItem(storageKey) === "true"
1919
setShow(!isDismissed)
20-
}, [])
20+
}, [storageKey])
2121

2222
const onClose = () => {
2323
localStorage.setItem(storageKey, "true")

src/components/BaseStories/Heading.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export const Heading: Story = {
7373
render: (args) => (
7474
<VStack w="full">
7575
<Box>
76-
Adjust the viewport to below "md" to see the font size and line height
77-
change
76+
Adjust the viewport to below &quot;md&quot; to see the font size and
77+
line height change
7878
</Box>
7979
<Stack>
8080
{headingScale.map((obj, idx) => (

src/components/BaseStories/Link.stories.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ type Story = StoryObj<typeof meta>
2525
const MockParagraph = ({ to }: { to?: string }) => (
2626
<Text>
2727
Text body normal. Ethereum is open access to digital money and data-friendly
28-
services for everyone no matter your background or location. It's a{" "}
29-
<Link to={to}>community-built</Link> technology behind the cryptocurrency
30-
ether (ETH) and thousands of applications you can use today.
28+
services for everyone &ndash; no matter your background or location.
29+
It&apos;s a <Link to={to}>community-built</Link> technology behind the
30+
cryptocurrency ether (ETH) and thousands of applications you can use today.
3131
</Text>
3232
)
3333

@@ -50,9 +50,10 @@ export const LinkList: Story = {
5050
<Stack spacing="6">
5151
<Text>
5252
Text body normal. Ethereum is open access to digital money and
53-
data-friendly services for everyone – no matter your background or
54-
location. It's a community-built technology behind the cryptocurrency
55-
ether (ETH) and thousands of applications you can use today.
53+
data-friendly services for everyone &ndash; no matter your background or
54+
location. It&apos;s a community-built technology behind the
55+
cryptocurrency ether (ETH) and thousands of applications you can use
56+
today.
5657
</Text>
5758
<UnorderedList>
5859
{Array.from({ length: 9 }).map((_, idx) => (

src/components/BaseStories/Text.stories.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const Normal: Story = {
4444
return (
4545
<VStack w="full">
4646
<Box>
47-
Adjust the viewport to below "md" to see the font size and line height
48-
change
47+
Adjust the viewport to below &quot;md&quot; to see the font size and
48+
line height change
4949
</Box>
5050
<Stack>
5151
{Object.keys(textSizes || {}).map((key, idx) => (
@@ -71,8 +71,8 @@ export const Bold: Story = {
7171
return (
7272
<VStack w="full">
7373
<Box>
74-
Adjust the viewport to below "md" to see the font size and line height
75-
change
74+
Adjust the viewport to below &quot;md&quot; to see the font size and
75+
line height change
7676
</Box>
7777
<Stack>
7878
{Object.keys(textSizes || {}).map((key, idx) => (
@@ -97,8 +97,8 @@ export const Italic: Story = {
9797
return (
9898
<VStack w="full">
9999
<Box>
100-
Adjust the viewport to below "md" to see the font size and line height
101-
change
100+
Adjust the viewport to below &quot;md&quot; to see the font size and
101+
line height change
102102
</Box>
103103
<Stack>
104104
{Object.keys(textSizes || {}).map((key, idx) => (
@@ -123,8 +123,8 @@ export const Link: StoryObj<typeof ChakraLink> = {
123123
return (
124124
<VStack w="full">
125125
<Box>
126-
Adjust the viewport to below "md" to see the font size and line height
127-
change
126+
Adjust the viewport to below &quot;md&quot; to see the font size and
127+
line height change
128128
</Box>
129129
<Stack>
130130
{Object.keys(textSizes || {}).map((key, idx) => (
@@ -147,8 +147,9 @@ export const BodyCopy: Story = {
147147
<Text>
148148
Text body normal. Ethereum is open access to digital money and
149149
data-friendly services for everyone - no matter your background or
150-
location. It's a community-built technology behind the cryptocurrency
151-
ether (ETH) and thousands of applications you can use today!
150+
location. It&apos;s a community-built technology behind the
151+
cryptocurrency ether (ETH) and thousands of applications you can use
152+
today!
152153
</Text>
153154
</Box>
154155
),

src/components/BugBountyPoints.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ const BugBountyPoints: React.FC<IProps> = () => {
7070
})
7171
.catch((error) => {
7272
console.error(error)
73-
setState({
74-
...state,
73+
setState((prevState) => ({
74+
...prevState,
7575
hasError: true,
76-
})
76+
}))
7777
})
7878
}, [])
7979

src/components/CardList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import {
1313
import { Image, type ImageProps } from "@/components/Image"
1414
import { BaseLink } from "@/components/Link"
1515

16-
import { useRtlFlip } from "@/hooks/useRtlFlip"
1716
import * as url from "@/lib/utils/url"
1817

18+
import { useRtlFlip } from "@/hooks/useRtlFlip"
19+
1920
export type CardListItem = {
2021
title?: ReactNode
2122
description?: ReactNode

0 commit comments

Comments
 (0)