Skip to content

Commit

Permalink
Replace single-quote imports with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziad-saab committed Jul 22, 2024
1 parent 65dc7f4 commit 12b370b
Show file tree
Hide file tree
Showing 30 changed files with 73 additions and 73 deletions.
6 changes: 3 additions & 3 deletions services/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sidebar_label: Introduction
sidebar_position: 1
---

import CodeTerminal from '@site/src/components/CodeTerminal/CodeTerminal.jsx';
import SectionAPIs from '@site/src/components/Sections/SectionAPIs.jsx';
import SectionNetworks from '@site/src/components/Sections/SectionNetworks.jsx';
import CodeTerminal from "@site/src/components/CodeTerminal/CodeTerminal.jsx";
import SectionAPIs from "@site/src/components/Sections/SectionAPIs.jsx";
import SectionNetworks from "@site/src/components/Sections/SectionNetworks.jsx";

# Power your dapp using services

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="JSON">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

<Tabs>
<TabItem value="cURL">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "eth_getBlockReceipts"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import Description from "/services/reference/_partials/_eth_getblockreceipts-description.mdx";

Expand Down
6 changes: 3 additions & 3 deletions snaps/features/cron-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Schedule periodic actions for your users.
sidebar_position: 1
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Cron jobs

Expand Down Expand Up @@ -49,7 +49,7 @@ The following example handles the `execute` method specified in the previous exa

```tsx title="index.tsx"
import type { OnCronjobHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onCronjob: OnCronjobHandler = async ({ request }) => {
switch (request.method) {
Expand Down
10 changes: 5 additions & 5 deletions snaps/features/custom-ui/dialogs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Display custom alert, confirmation, or prompt screens in MetaMask.
sidebar_position: 2
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Dialogs

Expand Down Expand Up @@ -42,7 +42,7 @@ The following example displays custom UI that alerts the user when something hap
<TabItem value="JSX">

```tsx title="index.tsx"
import { Box, Text, Heading } from '@metamask/snaps-sdk/jsx';
import { Box, Text, Heading } from "@metamask/snaps-sdk/jsx";

await snap.request({
method: "snap_dialog",
Expand Down Expand Up @@ -99,7 +99,7 @@ take an action:
<TabItem value="JSX">

```tsx title="index.tsx"
import { Box, Text, Heading } from '@metamask/snaps-sdk/jsx';
import { Box, Text, Heading } from "@metamask/snaps-sdk/jsx";

const result = await snap.request({
method: "snap_dialog",
Expand Down Expand Up @@ -160,7 +160,7 @@ The following example displays custom UI that prompts the user to enter a wallet
<TabItem value="JSX">

```tsx title="index.tsx"
import { Box, Text, Heading } from '@metamask/snaps-sdk/jsx';
import { Box, Text, Heading } from "@metamask/snaps-sdk/jsx";

const walletAddress = await snap.request({
method: "snap_dialog",
Expand Down
6 changes: 3 additions & 3 deletions snaps/features/custom-ui/home-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Display a dedicated UI page in MetaMask for your Snap.
sidebar_position: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Home pages

Expand Down Expand Up @@ -40,7 +40,7 @@ The following example displays custom UI that welcomes the user to the Snap's ho

```tsx title="index.tsx"
import type { OnHomePageHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onHomePage: OnHomePageHandler = async () => {
return {
Expand Down
8 changes: 4 additions & 4 deletions snaps/features/lifecycle-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ sidebar_position: 6
description: Call an action when your Snap is installed or updated.
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Lifecycle hooks

Expand Down Expand Up @@ -39,7 +39,7 @@ The following example displays an [alert dialog](custom-ui/dialogs.md#display-an

```tsx title="index.tsx"
import type { OnInstallHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onInstall: OnInstallHandler = async () => {
await snap.request({
Expand Down Expand Up @@ -99,7 +99,7 @@ The following example displays an [alert dialog](custom-ui/dialogs.md#display-an

```tsx title="index.tsx"
import type { OnUpdateHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onUpdate: OnUpdateHandler = async () => {
await snap.request({
Expand Down
2 changes: 1 addition & 1 deletion snaps/features/signature-insights.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ The following is an example implementation of `onSignature`:

```tsx title="index.tsx"
import type { OnSignatureHandler, SeverityLevel } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onSignature: OnSignatureHandler = async ({
signature,
Expand Down
8 changes: 4 additions & 4 deletions snaps/features/transaction-insights.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ toc_max_heading_level: 4
sidebar_position: 13
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Transaction insights

Expand Down Expand Up @@ -51,7 +51,7 @@ The following is an example implementation of `onTransaction`:

```tsx title="index.tsx"
import type { OnTransactionHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onTransaction: OnTransactionHandler = async ({
transaction,
Expand Down Expand Up @@ -119,7 +119,7 @@ MetaMask shows a modal with the warning before the user can confirm the transact

```tsx title="index.tsx"
import type { OnTransactionHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text } from "@metamask/snaps-sdk/jsx";

export const onTransaction: OnTransactionHandler = async ({
transaction,
Expand Down
8 changes: 4 additions & 4 deletions snaps/get-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ description: Get started quickly using the create-snap starter kit.
sidebar_position: 2
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import YoutubeEmbed from '@site/src/components/YoutubeEmbed';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import YoutubeEmbed from "@site/src/components/YoutubeEmbed";

# Snaps quickstart

Expand Down Expand Up @@ -96,7 +96,7 @@ You can customize your Snap by editing `index.ts` in the `packages/snap/src` fol

```tsx title="index.tsx"
import type { OnRpcRequestHandler } from "@metamask/snaps-sdk";
import { Box, Text, Bold } from '@metamask/snaps-sdk/jsx';
import { Box, Text, Bold } from "@metamask/snaps-sdk/jsx";

/**
* Handle incoming JSON-RPC requests, sent through wallet_invokeSnap.
Expand Down
2 changes: 1 addition & 1 deletion snaps/how-to/use-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Snaps CLI:
<TabItem value="JSX">

```tsx title="index.tsx"
import { Box, Text, Heading } from '@metamask/snaps-sdk/jsx';
import { Box, Text, Heading } from "@metamask/snaps-sdk/jsx";

await snap.request({
method: "snap_dialog",
Expand Down
4 changes: 2 additions & 2 deletions snaps/learn/tutorials/gas-estimation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Create a Snap that estimates gas fees.
sidebar_position: 1
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Create a Snap to estimate gas fees

Expand Down
6 changes: 3 additions & 3 deletions snaps/learn/tutorials/transaction-insights.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Create a Snap that provides transaction insights.
sidebar_position: 2
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Create a Snap to calculate gas fee percentages

Expand Down Expand Up @@ -108,7 +108,7 @@ replace the code in `packages/snap/src/index.ts` with the following:

```tsx title="index.tsx"
import type { OnTransactionHandler } from "@metamask/snaps-sdk";
import { Box, Heading, Text, Bold } from '@metamask/snaps-sdk/jsx';
import { Box, Heading, Text, Bold } from "@metamask/snaps-sdk/jsx";

// Handle outgoing transactions.
export const onTransaction: OnTransactionHandler = async ({ transaction }) => {
Expand Down
Loading

0 comments on commit 12b370b

Please sign in to comment.