-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1422 from oasisprotocol/csillag/search-for-consen…
…sus-accounts Support searching for consensus accounts
- Loading branch information
Showing
14 changed files
with
212 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support searching for consensus accounts (by address) |
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
29 changes: 29 additions & 0 deletions
29
src/app/pages/ConsensusAccountDetailsPage/ConsensusAccountDetailsView.tsx
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { FC } from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
import { CardEmptyState } from '../../components/CardEmptyState' | ||
import { ConsensusAccountData, ConsensusAccountDataProps } from '../../components/Account' | ||
|
||
type ConsensusAccountDetailsViewProps = ConsensusAccountDataProps & { | ||
isError?: boolean | undefined | ||
} | ||
|
||
export const ConsensusAccountDetailsView: FC<ConsensusAccountDetailsViewProps> = ({ | ||
account, | ||
isError, | ||
isLoading, | ||
showLayer, | ||
standalone, | ||
}) => { | ||
const { t } = useTranslation() | ||
|
||
if (isError || !account) return <CardEmptyState label={t('account.cantLoadDetails')} /> | ||
|
||
return ( | ||
<ConsensusAccountData | ||
isLoading={!!isLoading} | ||
account={account} | ||
showLayer={showLayer} | ||
standalone={standalone} | ||
/> | ||
) | ||
} |
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
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
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.