-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add page to create multisig address
- Loading branch information
Showing
9 changed files
with
496 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
export default function IndexPage() { | ||
return <p>Index</p>; | ||
import { Button } from "flowbite-react"; | ||
|
||
function AddressesList({ navigate, addresses }) { | ||
return ( | ||
<section> | ||
<h2 className="text-lg border-b-2 leading-8 mb-4">Mulgisig Addresses</h2> | ||
<ul className="mb-4"> | ||
{addresses.map((address) => ( | ||
<li className="leading-8 font-mono">{address.args}</li> | ||
))} | ||
</ul> | ||
<Button onClick={() => navigate("#/addresses/new")}>Add Address</Button> | ||
</section> | ||
); | ||
} | ||
export default function IndexPage({ navigate, state }) { | ||
return ( | ||
<> | ||
<AddressesList {...{ navigate, addresses: state.addresses }} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.