Skip to content

Commit e3d73a2

Browse files
authored
🖼️ Use direct asset img paths (#2378)
* use direct asset paths in sep6 docs * add missing alt text in sep6 docs * no es change
1 parent 172d44e commit e3d73a2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • docs/build/apps/example-application-tutorial/anchor-integration

‎docs/build/apps/example-application-tutorial/anchor-integration/sep6.mdx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: "SEP-6: Deposit and Withdrawal API"
33
sidebar_position: 30
44
---
55

6-
import useBaseUrl from "@docusaurus/useBaseUrl";
7-
86
SEP-6 allows wallets and other clients to interact with anchors directly without the user needing to leave the wallet to go to the anchor’s site. In this integration, a user’s KYC information is gathered and handled by the wallet and submitted to the anchor _on behalf of_ the user.
97

108
## Find the anchor's `TRANSFER_SERVER`
@@ -133,8 +131,9 @@ BasicPay prompts the user to input additional information such as transfer type,
133131
We'll spare the code sample in this section, since it's mostly Svelte things going on. You can view the source here: https://github.com/stellar/basic-payment-app/blob/main/src/routes/dashboard/transfers/components/TransferDetails.svelte
134132

135133
<img
136-
src={useBaseUrl("/assets/basic-pay/sep6_transfer_details.png")}
134+
src="/assets/basic-pay/sep6_transfer_details.png"
137135
width="45%"
136+
alt="SEP-6 transfer details screen"
138137
/>
139138

140139
### Modal step 2: Gather KYC information
@@ -155,7 +154,7 @@ export async function getKycServer(domain) {
155154
156155
Our SEP-6 modal then queries the anchor’s SEP-12 endpoint for the required KYC fields with a `GET` request, and we present these fields for the user to complete.
157156
158-
<img src={useBaseUrl("/assets/basic-pay/sep6_kyc.png")} width="45%" />
157+
<img src="/assets/basic-pay/sep6_kyc.png" width="45%" alt="SEP-6 KYC Screen" />
159158
160159
```js title=/src/lib/stellar/sep12.js
161160
import { getKycServer } from "$lib/stellar/sep1";
@@ -209,7 +208,7 @@ export async function putSep12Fields({ authToken, fields, homeDomain }) {
209208
210209
BasicPay receives back from the anchor a status message for the user to see. Once the status message is `ACCEPTED`, we can finally submit the actual transfer request!
211210
212-
<img src={useBaseUrl("/assets/basic-pay/kyc_accepted.png")} width="50%" />
211+
<img src="/assets/basic-pay/kyc_accepted.png" width="50%" alt="KYC Accepted" />
213212
214213
This component of the SEP-6 modal, like most of them, is almost entirely Svelte-related. So as to keep this tutorial (somewhat) uncluttered, we'll refer you to the source for the component, which you can find here: https://github.com/stellar/basic-payment-app/blob/main/src/routes/dashboard/transfers/components/KYCStatus.svelte
215214

0 commit comments

Comments
 (0)