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

Add vesting support #54

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix rest of the comments
  • Loading branch information
msteiner96 committed Mar 31, 2022
commit 649d326a1c873b7061885771ee5e6230d7564148
2 changes: 1 addition & 1 deletion components/forms/VestingForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const VestingForm = (props) => {
</div>
<div className="form-item">
<Input
label="Unix Epoch Time"
label="Vesting end time (UNIX timestamp)"
name="unixEpochTime"
type="number"
value={unixEpochTime}
Expand Down
12 changes: 6 additions & 6 deletions pages/multi/[address]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function participantAddressesFromMultisig(multisigPubkey, addressPrefix) {

const multipage = (props) => {
const { state } = useAppContext();
const [showTxForm, setShowTxForm] = useState(false);
const [showSendForm, setShowSendForm] = useState(false);
const [showVestingForm, setShowVestingForm] = useState(false);
const [holdings, setHoldings] = useState("");
const [accountOnChain, setAccountOnChain] = useState(null);
Expand Down Expand Up @@ -86,12 +86,12 @@ const multipage = (props) => {
</div>
</StackableContainer>
)}
{showTxForm && (
{showSendForm && (
<TransactionForm
address={router.query.address}
accountOnChain={accountOnChain}
closeForm={() => {
setShowTxForm(false);
setShowSendForm(false);
}}
/>
)}
Expand All @@ -104,7 +104,7 @@ const multipage = (props) => {
}}
/>
)}
{!showTxForm && !showVestingForm && (
{!showSendForm && !showVestingForm && (
<>
<div className="interfaces">
<div className="col-2">
Expand All @@ -120,9 +120,9 @@ const multipage = (props) => {
then broadcast.
</p>
<Button
label="Create Transaction"
label="Create Send Transaction"
onClick={() => {
setShowTxForm(true);
setShowSendForm(true);
}}
/>
<Button
Expand Down