-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10991 from ethereum/staging
Deploy v7.19.2
- Loading branch information
Showing
110 changed files
with
1,286 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ethereum-org-website", | ||
"version": "7.19.1", | ||
"version": "7.19.2", | ||
"description": "Website of ethereum.org", | ||
"main": "index.js", | ||
"repository": "[email protected]:ethereum/ethereum-org-website.git", | ||
|
@@ -15,8 +15,6 @@ | |
"@docsearch/react": "^3.3.3", | ||
"@emotion/react": "^11.9.3", | ||
"@emotion/styled": "^11.9.3", | ||
"@formatjs/intl-locale": "^2.4.14", | ||
"@formatjs/intl-numberformat": "^6.1.4", | ||
"@mdx-js/mdx": "^1.6.5", | ||
"@mdx-js/react": "^1.6.5", | ||
"algoliasearch": "^4.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/components/BannerNotification/DismissableBanner.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Meta, StoryObj } from "@storybook/react" | ||
import React from "react" | ||
import DismissableBanner from "../Banners/DismissableBanner" | ||
|
||
export default { | ||
component: DismissableBanner, | ||
} as Meta<typeof DismissableBanner> | ||
|
||
/** | ||
* Story taken from DismissableBanner component | ||
*/ | ||
const dismissableBannerStoryPageKey = "dismissableBannerStoryPageKey" | ||
const bannerText = "This is a dismissable banner" | ||
|
||
export const DismissableBannerStory: StoryObj<typeof DismissableBanner> = { | ||
play: () => { | ||
localStorage.setItem(dismissableBannerStoryPageKey, "false") | ||
}, | ||
render: () => { | ||
const children = <div>{bannerText}</div> | ||
return ( | ||
<DismissableBanner | ||
children={children} | ||
storageKey={dismissableBannerStoryPageKey} | ||
/> | ||
) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import * as React from "react" | ||
import { Box, Center, ListItem, Text, UnorderedList } from "@chakra-ui/react" | ||
import { Meta, StoryObj } from "@storybook/react" | ||
import Link from "../Link" | ||
|
||
type LinkType = typeof Link | ||
|
||
const meta = { | ||
title: "Molecules / Navigation / Links", | ||
component: Link, | ||
decorators: [ | ||
(Story) => ( | ||
<Center maxW="prose"> | ||
<Story /> | ||
</Center> | ||
), | ||
], | ||
} satisfies Meta<LinkType> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
const MockParagraph = ({ to }: { to?: string }) => ( | ||
<Text> | ||
Text body normal. Ethereum is open access to digital money and data-friendly | ||
services for everyone – no matter your background or location. It's a{" "} | ||
<Link to={to}>community-built</Link> technology behind the cryptocurrency | ||
ether (ETH) and thousands of applications you can use today. | ||
</Text> | ||
) | ||
|
||
export const InternalLink: Story = { | ||
args: { | ||
to: "#", | ||
}, | ||
render: (args) => <MockParagraph {...args} />, | ||
} | ||
|
||
export const ExternalLink: Story = { | ||
args: { | ||
to: "https://example.com", | ||
}, | ||
render: (args) => <MockParagraph {...args} />, | ||
} | ||
|
||
export const LinkList: Story = { | ||
render: () => ( | ||
<Box> | ||
<Text> | ||
Text body normal. Ethereum is open access to digital money and | ||
data-friendly services for everyone – no matter your background or | ||
location. It's a community-built technology behind the cryptocurrency | ||
ether (ETH) and thousands of applications you can use today. | ||
</Text> | ||
<UnorderedList> | ||
{Array.from({ length: 9 }).map((_, idx) => ( | ||
<ListItem key={idx + 1}> | ||
<Link | ||
to={idx % 2 === 0 ? "https://example.com" : "#"} | ||
>{`List Item ${idx % 2 === 0 ? "External" : "Internal"} ${ | ||
idx + 1 | ||
}`}</Link> | ||
</ListItem> | ||
))} | ||
</UnorderedList> | ||
</Box> | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.