From d0ea7743aec42dd77434bf5f82ced0328fd134af Mon Sep 17 00:00:00 2001 From: Sunny Gleason Date: Wed, 2 Oct 2019 11:27:18 -0400 Subject: [PATCH] feat: header changes, yarn lint --- .../Applications/Detail/Details/index.jsx | 13 ++++++------- src/v2/components/Applications/Detail/index.jsx | 7 ++++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/v2/components/Applications/Detail/Details/index.jsx b/src/v2/components/Applications/Detail/Details/index.jsx index 69699693..c63f4ff9 100644 --- a/src/v2/components/Applications/Detail/Details/index.jsx +++ b/src/v2/components/Applications/Detail/Details/index.jsx @@ -4,12 +4,7 @@ import Label from 'v2/components/UI/Label'; import _ from 'lodash'; // import useStyles from './styles'; import {observer} from 'mobx-react-lite'; -import { - Table, - TableBody, - TableCell, - TableRow, -} from '@material-ui/core'; +import {Table, TableBody, TableCell, TableRow} from '@material-ui/core'; const ApplicationDetails = ({programAccounts}: {programAccounts: Object}) => { // const classes = useStyles(); @@ -35,7 +30,11 @@ const ApplicationDetails = ({programAccounts}: {programAccounts: Object}) => { ); }; - return {_.map(programAccounts, renderAccount)}
; + return ( + + {_.map(programAccounts, renderAccount)} +
+ ); }; export default observer(ApplicationDetails); diff --git a/src/v2/components/Applications/Detail/index.jsx b/src/v2/components/Applications/Detail/index.jsx index 1f42c8cb..d9942a27 100644 --- a/src/v2/components/Applications/Detail/index.jsx +++ b/src/v2/components/Applications/Detail/index.jsx @@ -18,7 +18,8 @@ import ApplicationDetails from './Details'; import ApplicationCode from './Code'; import useStyles from './styles'; import ApplicationDetailStore from 'v2/stores/applications/detail'; -import formatDistanceToNow from "date-fns/formatDistanceToNow"; +import formatDistanceToNow from 'date-fns/formatDistanceToNow'; +import {LAMPORT_SOL_RATIO} from 'v2/constants'; const ApplicationDetail = ({match}: {match: Match}) => { const classes = useStyles(); @@ -53,7 +54,7 @@ const ApplicationDetail = ({match}: {match: Match}) => { { label: 'Balance', hint: '', - value: `${accountInfo.lamports} LAMPORTS`, + value: `${(accountInfo.lamports * LAMPORT_SOL_RATIO).toFixed(8)} SOL`, }, { label: 'Type', @@ -79,7 +80,7 @@ const ApplicationDetail = ({match}: {match: Match}) => { value: 'TODO', }, { - label: 'Time', + label: 'Last Called', hint: '', value: timestamp && asTime(timestamp), },