Skip to content
Open
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ a:hover{
text-decoration:none;
opacity: 0.9;
}

.word-break-all {
word-break: break-all;
}

#layout {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -434,6 +439,18 @@ hr{
margin-top: 20px;
}

#Bulk .addr-item {
text-align: center;
padding: 20px;
border: 1px solid grey;
margin-bottom: 50px;
page-break-inside: avoid;
}

#Bulk .addr-item h3 {
margin-top: 0;
}

#layout {
display: block;
}
Expand Down
68 changes: 55 additions & 13 deletions src/components/Bulk.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Bulk extends Component {
startIndex: 1,
nbRows: 1,
type: 'T',
paper: true,
paper: false,
pairs: []
};
}
Expand Down Expand Up @@ -165,10 +165,11 @@ class Bulk extends Component {
</Row>
<hr />
{this.state.pairs[0] ? (
<Row className="r2">
<Col className="max-width">
<Table striped bordered condensed hover>
<thead>
<div>
<Row className="r2 screen-only">
<Col className="max-width">
<Table striped bordered condensed hover>
<thead>
<tr>
<th>#</th>
<th>Address</th>
Expand All @@ -179,24 +180,65 @@ class Bulk extends Component {
}
<th>Private Key</th>
</tr>
</thead>
<tbody>
</thead>
<tbody>
{this.state.pairs.map((pair) => (
<tr>
<td>{pair.index}</td>
<td>{pair.addr}</td>
<td>{pair.wif}</td>
{
this.state.type === 'Z' ?
(<td>{pair.priv}</td>)
: null
(<td>{pair.priv}</td>)
: null
}
</tr>
))}
</tbody>
</Table>
</Col>
</Row>
</tbody>
</Table>
</Col>
</Row>
<div className="print-only">
{this.state.pairs.map((pair) => (
<div className="addr-item">
<Row>
<Col sm={6}>
<h3>Zen Address</h3>
<div>
<QRCode
bgColor="#FFFFFF"
fgColor="#000000"
level="L"
style={{ width: 200 }}
value={pair.addr}
/>
</div>
<div className="word-break-all">{pair.addr}</div>
</Col>
<Col sm={6}>
<div>
{this.state.type === 'T' ? (
<h3>Private Key</h3>
) : (
<h3>Spending Key</h3>
)}
<div>
<QRCode
bgColor="#FFFFFF"
fgColor="#000000"
level="L"
style={{ width: 200 }}
value={pair.wif}
/>
</div>
<div className="word-break-all">{pair.wif}</div>
</div>
</Col>
</Row>
</div>
))}
</div>
</div>
) : (
<Row className="r2 no-padding"></Row>
)}
Expand Down