Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: header changes, yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Oct 2, 2019
1 parent b3c92f3 commit d0ea774
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
13 changes: 6 additions & 7 deletions src/v2/components/Applications/Detail/Details/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -35,7 +30,11 @@ const ApplicationDetails = ({programAccounts}: {programAccounts: Object}) => {
);
};

return <Table><TableBody>{_.map(programAccounts, renderAccount)}</TableBody></Table>;
return (
<Table>
<TableBody>{_.map(programAccounts, renderAccount)}</TableBody>
</Table>
);
};

export default observer(ApplicationDetails);
7 changes: 4 additions & 3 deletions src/v2/components/Applications/Detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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',
Expand All @@ -79,7 +80,7 @@ const ApplicationDetail = ({match}: {match: Match}) => {
value: 'TODO',
},
{
label: 'Time',
label: 'Last Called',
hint: '',
value: timestamp && asTime(timestamp),
},
Expand Down

0 comments on commit d0ea774

Please sign in to comment.