Skip to content

Commit

Permalink
Add a muxed account doc to muxed account page (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesunikim authored Nov 7, 2024
1 parent 684ee3e commit 46ccc52
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
16 changes: 12 additions & 4 deletions src/app/(sidebar)/account/muxed-create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
"use client";

import { useState } from "react";
import { Alert, Button, Card, Input, Text } from "@stellar/design-system";
import { Alert, Button, Card, Input, Link, Text } from "@stellar/design-system";

import { useStore } from "@/store/useStore";

import { ExpandBox } from "@/components/ExpandBox";
import { MuxedAccountResult } from "@/components/MuxedAccountResult";
import { PubKeyPicker } from "@/components/FormElements/PubKeyPicker";
import { SdsLink } from "@/components/SdsLink";
import { WithInfoText } from "@/components/WithInfoText";

import { muxedAccount } from "@/helpers/muxedAccount";

Expand Down Expand Up @@ -68,9 +69,11 @@ export default function CreateMuxedAccount() {
<Card>
<div className="Account__card">
<div className="CardText">
<Text size="lg" as="h1" weight="medium">
Create Multiplexed Account
</Text>
<WithInfoText href="https://developers.stellar.org/docs/learn/encyclopedia/transactions-specialized/pooled-accounts-muxed-accounts-memos">
<Text size="lg" as="h1" weight="medium">
Create Multiplexed Account
</Text>
</WithInfoText>

<Text size="sm" as="p">
A muxed (or multiplexed) account (defined in{" "}
Expand Down Expand Up @@ -165,6 +168,11 @@ export default function CreateMuxedAccount() {
title="Muxed accounts are uncommon"
>
Don’t use in a production environment unless you know what you’re doing.
Read more about Muxed accounts{" "}
<Link href="https://developers.stellar.org/docs/learn/encyclopedia/transactions-specialized/pooled-accounts-muxed-accounts-memos#muxed-accounts">
here
</Link>
.
</Alert>

{Boolean(sdkError) && (
Expand Down
16 changes: 12 additions & 4 deletions src/app/(sidebar)/account/muxed-parse/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use client";

import { useState } from "react";
import { Alert, Card, Text, Button } from "@stellar/design-system";
import { Alert, Card, Link, Text, Button } from "@stellar/design-system";

import { useStore } from "@/store/useStore";

import { ExpandBox } from "@/components/ExpandBox";
import { PubKeyPicker } from "@/components/FormElements/PubKeyPicker";
import { MuxedAccountResult } from "@/components/MuxedAccountResult";
import { WithInfoText } from "@/components/WithInfoText";

import { muxedAccount } from "@/helpers/muxedAccount";

Expand Down Expand Up @@ -59,9 +60,11 @@ export default function ParseMuxedAccount() {
<Card>
<div className="Account__card">
<div className="CardText">
<Text size="lg" as="h1" weight="medium">
Get Muxed Account from M address
</Text>
<WithInfoText href="https://developers.stellar.org/docs/learn/encyclopedia/transactions-specialized/pooled-accounts-muxed-accounts-memos">
<Text size="lg" as="h1" weight="medium">
Get Muxed Account from M address
</Text>
</WithInfoText>
</div>

<PubKeyPicker
Expand Down Expand Up @@ -126,6 +129,11 @@ export default function ParseMuxedAccount() {
title="Muxed accounts are uncommon"
>
Don’t use in a production environment unless you know what you’re doing.
Read more about Muxed accounts{" "}
<Link href="https://developers.stellar.org/docs/learn/encyclopedia/transactions-specialized/pooled-accounts-muxed-accounts-memos#muxed-accounts">
here
</Link>
.
</Alert>

{Boolean(sdkError) && (
Expand Down

0 comments on commit 46ccc52

Please sign in to comment.