Skip to content

Commit

Permalink
adapt import
Browse files Browse the repository at this point in the history
  • Loading branch information
cfranceschi-ledger committed Oct 18, 2024
1 parent a718c24 commit e4a1baf
Show file tree
Hide file tree
Showing 37 changed files with 89 additions and 8 deletions.
2 changes: 2 additions & 0 deletions components/Homepage/Carousel/CarouselItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react'
import Image from 'next/image'


interface CarouselItemProps {
title: string;
Expand Down
1 change: 1 addition & 0 deletions components/Homepage/ExampleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { combination } from '../../lib/utils';
import { Tag } from './Tag';
import { useRouter } from 'next/navigation';


interface ExampleCardProps extends HTMLAttributes<HTMLButtonElement> {
icon: "coinbase" | "cosmos" | "lido" | "moonpay-purple" | "objkt" | "solana";
title: string;
Expand Down
2 changes: 2 additions & 0 deletions components/Homepage/JourneyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { useState, useEffect, FC, HTMLAttributes } from 'react'
import Image from 'next/image'


interface JourneyButtonProps extends HTMLAttributes<HTMLDivElement> {
hovered: boolean;
Expand Down
2 changes: 2 additions & 0 deletions components/ui/Button-scroll.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { FC, HTMLAttributes } from 'react'
import { Link } from "react-scroll";
import { combination } from '../../lib/utils';
import Image from 'next/image'


interface ButtonChildrenProps {
label: string;
Expand Down
1 change: 1 addition & 0 deletions components/ui/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FC, HTMLAttributes } from 'react'
import { combination } from '../../lib/utils';
import { useRouter } from 'next/navigation';
import Image from 'next/image'


interface ButtonChildrenProps {
Expand Down
1 change: 1 addition & 0 deletions pages/docs/clear-signing/erc7730.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Callout } from "nextra/components";
import Image from 'next/image'

# ERC-7730: How to implement clear signing

Expand Down
3 changes: 3 additions & 0 deletions pages/docs/clear-signing/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Image from 'next/image'


# Enhancing Security through Clear Signing

## Why does your dApp or Wallet need clear signing?
Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-app/explanation/device-app-role.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Description: "The steps to code your device app and submit it for a Ledger Live
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Glossary from '/components/features/tooltip-glossary'
import Image from 'next/image'



# What is a device app?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Demo
description: For any app submission, you are required to submit a video demo of your Device App as described in this article.
---

import Image from 'next/image'


# Demo

You are required to submit a video demo of your Device App as described below (For Ledger Nano only).
Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-app/submission-process/process.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import { Callout } from 'nextra/components'
import Image from 'next/image'


# How the submission of an app goes?

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-interaction/beginner/cosmos-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: In this section, we will guide you through the creation of a web ap

import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# Interact with the Cosmos App

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-interaction/beginner/personal-message.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: In this section, we will guide you through the creation of a web ap
import { Callout } from 'nextra/components'
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# Sign a personal message

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-interaction/beginner/smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: In this section, we will guide you through the creation of an appli
---

import { Callout } from 'nextra/components'
import Image from 'next/image'


# Call a Smart Contract

Expand Down
3 changes: 3 additions & 0 deletions pages/docs/device-interaction/beginner/transfer-eth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Transfer of Ethers between accounts
description: In this section, we will guide you through the creation of an application. This application will create a transaction that will be signed with the Ledger Nano before sending it to the blockchain.
---

import Image from 'next/image'


# Transfer of Ethers between accounts

## Introduction
Expand Down
3 changes: 3 additions & 0 deletions pages/docs/device-interaction/beginner/transfer-sol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Transfer of Sol between accounts
description: In this section, we will guide you through the creation of an application. This application will create a transaction that will be signed with the Ledger Nano before sending it to the blockchain.
---

import Image from 'next/image'


# Transfer of Sol between accounts

## Introduction
Expand Down
2 changes: 2 additions & 0 deletions pages/docs/device-interaction/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Callout } from 'nextra/components'
import Image from 'next/image'


# Getting started

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Node HID integration
description: In this section, we will guide you through the creation of a desktop electron application. This application will be connected to your Nano to display the address of your account (eg. bitcoin account, ethereum account).
---

import Image from 'next/image'


# Node HID integration

## Introduction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: In this section, you will see how to create a React Native applicat
---

import { Callout } from 'nextra/components'
import Image from 'next/image'


# React Native HID (Android only)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: In this section you will see how to create a React Native applicati
import { Callout } from 'nextra/components'
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'



# React Native Bluetooth on Android (Nano X only)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: In this section, you will see how to create a React Native applicat
import { Callout } from 'nextra/components'
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# React Native Bluetooth on iOS (Nano X only)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: In this section, we will guide you through the creation of an appli
---

import { Callout } from 'nextra/components'
import Image from 'next/image'


# Web Bluetooth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Web USB/HID
description: In this section, we will guide you through the creation of a web application. This application will connect to your Nano to display the address of a Bitcoin account. If you want it for Ethereum you can easily modify it.
---

import Image from 'next/image'
import { Callout } from 'nextra/components'

# Web USB/HID
Expand Down
3 changes: 3 additions & 0 deletions pages/docs/device-interaction/references/logos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title: Where can I find Ledger logos?
---

import Image from 'next/image'


# Ledger Logos

## PNG
Expand Down
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/accounts/explanation/architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# General architecture

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: "Add accounts: light sync"
description: An account represents a wallet where a user detains crypto assets for a given crypto currency. Ledger Live model is essentially an array of Account because many accounts can be created, even within a same crypto currency.
---

import Image from 'next/image'


# 3 - Create Coin Module

## Organization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: In this page you can see the classic UI Flow used in Ledger Live. Y

import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'



# Design guidelines
Expand Down
22 changes: 14 additions & 8 deletions pages/docs/ledger-live/exchange.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Cards } from 'nextra/components'
import Zoom from 'react-medium-image-zoom'
import { Callout } from 'nextra/components'
import Image from 'next/image'


# Get your exchange services in Ledger Live

Expand Down Expand Up @@ -28,27 +30,31 @@ To see if this integration is a good fit for your service, please get in touch w
arrow
title="Swap Integration"
href="/docs/exchange/swap">
<>![Cryptoassets Library](/blockchain-cover.jpg)</>
/>
/>
<Image src={"/blockchain-cover.jpg"} />
</Cards.Card>
<Cards.Card
image
arrow
title="Sell Integration"
href="/docs/exchange/sell">
<>![Cryptoassets Library](/blockchain-cover.jpg)</>
/>
/>
<Image src={"/blockchain-cover.jpg"} />
</Cards.Card>
<Cards.Card
image
arrow
title="Buy Integration"
href="/docs/exchange/buy">
<>![Cryptoassets Library](/blockchain-cover.jpg)</>
/>
/>
<Image src={"/blockchain-cover.jpg"} />
</Cards.Card>
<Cards.Card
image
arrow
title="Card Integration"
href="/docs/exchange/card">
<>![Cryptoassets Library](/blockchain-cover.jpg)</>
/>
/>
<Image src={"/blockchain-cover.jpg"} />
</Cards.Card>
</Cards>
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/exchange/buy/providers-liveapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";
import Zoom from "react-medium-image-zoom";
import "react-medium-image-zoom/dist/styles.css";
import Image from 'next/image'


# Provider's LiveApp

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/exchange/card/providers-backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Tabs } from 'nextra/components'
import { Callout } from 'nextra/components'
import BackendIntro from '../../../../../public/exchange/import/backend-intro.mdx'
import PayloadAndSignature from '../../../../../public/exchange/import/sell-payload-and-signature.mdx'
import Image from 'next/image'


# Backend

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/exchange/sell/providers-backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Tabs } from 'nextra/components'
import { Callout } from 'nextra/components'
import BackendIntro from '../../../../../public/exchange/import/backend-intro.mdx'
import PayloadAndSignature from '../../../../../public/exchange/import/sell-payload-and-signature.mdx'
import Image from 'next/image'


# Backend

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/exchange/swap/flow.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import { Cards } from 'nextra/components'
import Image from 'next/image'


# Swap : CEX integrated as a LiveApp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Callout } from "nextra/components";
import Zoom from "react-medium-image-zoom";
import "react-medium-image-zoom/dist/styles.css";
import Image from 'next/image'


# Detailed Technical Flows

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# Partner LiveApp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'

# Transaction status

Expand Down
2 changes: 2 additions & 0 deletions pages/docs/ledger-live/exchange/swap/providers-backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Tabs } from 'nextra/components'
import { Callout } from 'nextra/components'
import BackendIntro from '../../../../../public/exchange/import/backend-intro.mdx'
import PayloadAndSignature from '../../../../../public/exchange/import/payload-and-signature.mdx'
import Image from 'next/image'


# Backend

Expand Down
3 changes: 3 additions & 0 deletions pages/docs/nft-display/optimized-images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Optimized images
description: This series of articles are for NFT dApp developers and NFT creators who want to allow their audience to showcase their NFTs on the Ledger Stax device.
---

import Image from 'next/image'


# Optimized images

This series of articles are for NFT dApp developers and NFT creators who want to allow their audience to showcase their NFTs on the Ledger Stax device.
Expand Down
2 changes: 2 additions & 0 deletions pages/docs/nft-display/update-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ description: This guide will walk you through step-by-step instructions on how t
import { Callout } from 'nextra/components'
import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'
import Image from 'next/image'


# Update mutable metadata (in-depth guide)

Expand Down

0 comments on commit e4a1baf

Please sign in to comment.