From 29ec98d0a15acd2d308eaf0a20d1b9cc173cb8ce Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Tue, 12 May 2020 18:32:14 +0800 Subject: [PATCH] Add account details page --- explorer/src/App.tsx | 16 +- explorer/src/components/AccountDetails.tsx | 261 ++++++++++++++++++ explorer/src/components/AccountModal.tsx | 154 ----------- explorer/src/components/AccountsCard.tsx | 72 ++--- explorer/src/providers/accounts.tsx | 230 +++++++-------- explorer/src/providers/transactions/index.tsx | 100 +++---- explorer/src/scss/_solana.scss | 10 + 7 files changed, 464 insertions(+), 379 deletions(-) create mode 100644 explorer/src/components/AccountDetails.tsx delete mode 100644 explorer/src/components/AccountModal.tsx diff --git a/explorer/src/App.tsx b/explorer/src/App.tsx index 0defb2f191..e7184e05d1 100644 --- a/explorer/src/App.tsx +++ b/explorer/src/App.tsx @@ -2,20 +2,19 @@ import React from "react"; import { Link, Switch, Route, Redirect } from "react-router-dom"; import AccountsCard from "./components/AccountsCard"; +import AccountDetails from "./components/AccountDetails"; import TransactionsCard from "./components/TransactionsCard"; import TransactionDetails from "./components/TransactionDetails"; import ClusterModal from "./components/ClusterModal"; -import AccountModal from "./components/AccountModal"; import Logo from "./img/logos-solana/light-explorer-logo.svg"; import { TX_ALIASES } from "./providers/transactions"; -import { ACCOUNT_PATHS } from "./providers/accounts"; +import { ACCOUNT_ALIASES, ACCOUNT_ALIASES_PLURAL } from "./providers/accounts"; import TabbedPage from "components/TabbedPage"; function App() { return ( <> -