-
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 remote-tracking branch 'upstream/dev' into feat/local-use-break…
…point-value
- Loading branch information
Showing
221 changed files
with
5,112 additions
and
3,080 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check Wallet Data for new_to_crypto | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/data/wallets/wallet-data.ts" | ||
|
||
jobs: | ||
check_new_to_crypto: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check for new_to_crypto | ||
id: check_new_to_crypto | ||
run: | | ||
if git diff --name-only HEAD^ | grep -q "data/wallets/wallet-data.ts"; then | ||
if git diff -U0 HEAD^ HEAD data/wallets/wallet-data.ts | grep -q "+.*new_to_crypto: true"; then | ||
echo "New wallet added with 'new_to_crypto: true'" | ||
echo "new_to_crypto_found=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "new_to_crypto_found=false" >> $GITHUB_OUTPUT | ||
fi | ||
fi | ||
- name: Comment on PR if new_to_crypto is added | ||
if: steps.check_new_to_crypto.outputs.new_to_crypto_found == 'true' | ||
uses: actions-ecosystem/action-add-comment@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
body: "A wallet has been added with 'new_to_crypto: true'. Please ensure this meets our guidelines." |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { useEffect } from "react" | ||
import { useTheme } from "next-themes" | ||
import { | ||
type DataAttributeStrategyConfiguration, | ||
DecoratorHelpers, | ||
} from "@storybook/addon-themes" | ||
import type { Decorator } from "@storybook/react/*" | ||
|
||
const { initializeThemeState, pluckThemeFromContext } = DecoratorHelpers | ||
|
||
export const withNextThemes = ({ | ||
themes, | ||
defaultTheme, | ||
}: DataAttributeStrategyConfiguration): Decorator => { | ||
initializeThemeState(Object.keys(themes), defaultTheme) | ||
|
||
return (getStory, context) => { | ||
const selectedTheme = pluckThemeFromContext(context) | ||
const selected = selectedTheme || defaultTheme | ||
const { setTheme } = useTheme() | ||
|
||
useEffect(() => { | ||
setTheme(selected) | ||
}, [selected, setTheme]) | ||
|
||
return getStory(context) | ||
} | ||
} |
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
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
Oops, something went wrong.