Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] - Add Faucet Link and instructions for adding token icons #40

Merged
merged 1 commit into from
Jan 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 48 additions & 2 deletions src/components/Create/Create.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import React from "react";
import { withRouter } from "react-router-dom";
import { WalletContext } from "../../utils/context";
import { Input, Button, notification, Spin, Icon, Row, Col, Card, Form, Typography } from "antd";
import {
Input,
Button,
notification,
Spin,
Icon,
Row,
Col,
Card,
Form,
Typography,
Collapse
} from "antd";
import createToken from "../../utils/broadcastTransaction";
import StyledCreate from "../Common/StyledPage";
import { QRCode } from "../Common/QRCode";
Expand Down Expand Up @@ -118,7 +130,20 @@ const Create = ({ history }) => {
<Paragraph>You currently have 0 BCH.</Paragraph>
<Paragraph>
Deposit some BCH in order to pay for the transaction that will generate the
token
token.
</Paragraph>
<Paragraph>
Get free BCH from the{" "}
<strong>
<a
target="_blank"
rel="noopener noreferrer"
href="https://free.bitcoin.com/"
>
Bitcoin.com Faucet
</a>
</strong>
!
</Paragraph>
</>
) : null}
Expand Down Expand Up @@ -210,6 +235,27 @@ const Create = ({ history }) => {
type="number"
/>
</Form.Item>
<Collapse accordion>
<Collapse.Panel
header={<>How can I add an icon?</>}
key="1"
style={{ textAlign: "left" }}
>
<Paragraph>
After creating your token, follow{" "}
<strong>
<a
href="https://github.com/kosinusbch/slp-token-icons#adding-your-icon"
target="_blank"
rel="noopener noreferrer"
>
these instructions
</a>
</strong>{" "}
to add your own token icon.
</Paragraph>
</Collapse.Panel>
</Collapse>
<div style={{ paddingTop: "12px" }}>
<Button onClick={() => handleCreateToken()}>Create Token</Button>
</div>
Expand Down