Skip to content

Commit

Permalink
Update docusaurus to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Mar 7, 2024
1 parent 6213ad3 commit 167cbda
Show file tree
Hide file tree
Showing 6 changed files with 5,895 additions and 3,682 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{*.md,*.mdx,*.snap}]
trim_trailing_whitespace = false
18 changes: 9 additions & 9 deletions docs/flows/crypto-onramp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We recommend that you use `XRP` for testing purposes when integrating Topper sin
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
Expand Down Expand Up @@ -92,7 +92,7 @@ We recommend that you use `XRP` for testing purposes when integrating Topper sin

When `recipientEditMode` is `not-editable`, the user can can't change `asset`, `network`, `address` or `tag` on the widget. This means that these fields are all required on the bootstrap token.

```json
```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
Expand All @@ -114,7 +114,7 @@ When `recipientEditMode` is `not-editable`, the user can can't change `asset`, `

When `recipientEditMode` is `only-address-and-tag`, the user can only change `address` and `tag` on the widget. This means that these fields are optional on the bootstrap token but you can still provide values for them. On the other hand, `asset` and `network` become mandatory.

```json
```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
Expand All @@ -134,7 +134,7 @@ When `recipientEditMode` is `only-address-and-tag`, the user can only change `ad

When `recipientEditMode` is `all-editable`, the user can change `asset`, `network`, `address` and `tag` on the widget. This means that all these fields are optional on the bootstrap token but you can still provide values for them.

```json
```js
{
"iat": 1679538023,
"jti": "4b552af1-1592-42f8-bbc9-dac28e2b4000",
Expand Down Expand Up @@ -197,7 +197,7 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"name": "order:crypto-onramp:committed",
"id": "00a991cf-a870-43af-88b8-43c51532831d",
Expand Down Expand Up @@ -296,7 +296,7 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"name": "order:crypto-onramp:charged",
"id": "00a991cf-a870-43af-88b8-43c51532831d",
Expand Down Expand Up @@ -397,7 +397,7 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"name": "order:crypto-onramp:completed",
"id": "00a991cf-a870-43af-88b8-43c51532831d",
Expand Down Expand Up @@ -499,7 +499,7 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"name": "order:crypto-onramp:failed",
"id": "00a991cf-a870-43af-88b8-43c51532831d",
Expand Down Expand Up @@ -602,7 +602,7 @@ The values for `origin.paymentMethod.type` can be found using our [REST API](../
</TabItem>
<TabItem label="Example" value="example">

```json
```js
{
"name": "order:crypto-onramp:refund:completed",
"id": "00a991cf-a870-43af-88b8-43c51532831d",
Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
const lightCodeTheme = require('prism-react-renderer').themes.github;

const config = {
baseUrl: '/',
Expand Down
Loading

0 comments on commit 167cbda

Please sign in to comment.