Skip to content

Commit

Permalink
Update README and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Apr 28, 2024
1 parent b283cf5 commit 1f085f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cli/test/tutorial/docs/tutorial-basics/markdown-features.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
sidebar_position: 4
---
import AddToMetaMaskButton from '@theme/AddToMetaMaskButton'
import { AddToMetaMaskButton } from '@theme/AddToMetaMaskButton'
import { Networks } from '@theme/constant'
import CodeSnippetBlock from '@theme/CodeSnippetBlock'
import code_snippet from '!!raw-loader!../../code_snippet.py'

Expand Down Expand Up @@ -152,4 +153,4 @@ This is <Highlight color="#1877F2">Facebook blue</Highlight> !

## AddToMetaMaskButton

<AddToMetaMaskButton />
<AddToMetaMaskButton {...Networks['shimmer']} />
10 changes: 7 additions & 3 deletions theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ module.exports = {
A button to add the ShimmerEVM network to MetaMask.

```
import {AddToMetaMaskButton} from '@theme/AddToMetaMaskButton'
import { AddToMetaMaskButton } from '@theme/AddToMetaMaskButton'
import { Networks } from '@theme/constant'
<AddToMetaMaskButton />
<AddToMetaMaskButton {...Networks['shimmer']}/>
```

### CodeSnippetBlock
Expand All @@ -55,8 +56,11 @@ A set of components showing information about the different networks.

```
import NetworkInfo from '@theme/NetworkInfo'
import { Networks } from '@theme/constant'
<NetworkInfo.IOTA />
<NetworkInfo.L1 {...Networks['iota']}/>
<NetworkInfo.Evm {...Networks['iota']}/>
<NetworkInfo.EvmCustom {...Networks['iota']}/>
```

## Swizzling components
Expand Down

0 comments on commit 1f085f6

Please sign in to comment.