diff --git a/api/network-explorer.js b/api/network-explorer.js index bd390a53..1d535f68 100644 --- a/api/network-explorer.js +++ b/api/network-explorer.js @@ -148,11 +148,7 @@ export function addNetworkExplorerRoutes(redisX, app) { const count = q.count ? parseInt(q.count) : DEFAULT_PAGE_SIZE; const direction = q.direction || '-'; const {__errors__, rawData} = await new FriendlyGet() - .with( - 'rawData', - loadProgramIndex(redisX, start, count, direction), - {}, - ) + .with('rawData', loadProgramIndex(redisX, start, count, direction), {}) .get(); res.send( @@ -169,11 +165,7 @@ export function addNetworkExplorerRoutes(redisX, app) { const version = q.v || 'ProgramDetailView@latest'; const {__errors__, rawData} = await new FriendlyGet() - .with( - 'rawData', - loadProgramDetail(redisX, req.params.id, version), - {}, - ) + .with('rawData', loadProgramDetail(redisX, req.params.id, version), {}) .get(); res.send( diff --git a/src/AppV2.js b/src/AppV2.js index 55efd05d..2daa1c5d 100644 --- a/src/AppV2.js +++ b/src/AppV2.js @@ -30,9 +30,7 @@ const TransactionDetail = lazy(() => import('v2/components/Transactions/Detail'), ); const Programs = lazy(() => import('v2/components/Programs')); -const ProgramDetail = lazy(() => - import('v2/components/Programs/Detail'), -); +const ProgramDetail = lazy(() => import('v2/components/Programs/Detail')); const Accounts = lazy(() => import('v2/components/Accounts')); const AccountDetail = lazy(() => import('v2/components/Accounts/Detail')); const Favorites = lazy(() => import('v2/components/Favorites')); @@ -140,11 +138,7 @@ const App = () => { path="/programs/timeline/:start" component={Programs} /> - + - + diff --git a/src/v2/api/programs.js b/src/v2/api/programs.js index 32ff0b7c..b62b1f21 100644 --- a/src/v2/api/programs.js +++ b/src/v2/api/programs.js @@ -9,7 +9,7 @@ const PROGRAM_DETAIL_VERSION = 'ProgramDetailView@1.0.0'; export function apiGetProgramDetail({programId, version}) { return api( `/explorer/programs/${encodeURIComponent(programId)}?v=${version || - PROGRAM_DETAIL_VERSION}`, + PROGRAM_DETAIL_VERSION}`, ); } diff --git a/src/v2/components/Programs/Detail/ApplicationsTab.jsx b/src/v2/components/Programs/Detail/ApplicationsTab.jsx index 649e29c9..1df96b48 100644 --- a/src/v2/components/Programs/Detail/ApplicationsTab.jsx +++ b/src/v2/components/Programs/Detail/ApplicationsTab.jsx @@ -6,10 +6,7 @@ import Program from './Program'; const ProgramsTab = ({programs}) => { return (
- +
); }; diff --git a/src/v2/components/Programs/Table/index.jsx b/src/v2/components/Programs/Table/index.jsx index 31084adb..6633f5a7 100644 --- a/src/v2/components/Programs/Table/index.jsx +++ b/src/v2/components/Programs/Table/index.jsx @@ -55,9 +55,7 @@ const ProgramsTable = ({ return ( - - {program.programId} - + {program.programId}
@@ -87,9 +85,7 @@ const ProgramsTable = ({
  • Time
    -
    - {asTime(program.timestamp)} -
    +
    {asTime(program.timestamp)}
  • diff --git a/src/v2/components/Programs/index.jsx b/src/v2/components/Programs/index.jsx index 7d8bd33d..6deee47c 100644 --- a/src/v2/components/Programs/index.jsx +++ b/src/v2/components/Programs/index.jsx @@ -13,13 +13,7 @@ import {Link, Match} from 'react-router-dom'; const ProgramsPage = ({match}: {match: Match}) => { const classes = useStyles(); - const { - programs, - programCount, - start, - next, - prev, - } = ProgramsTimelineStore; + const {programs, programCount, start, next, prev} = ProgramsTimelineStore; if (start !== match.params.start) { ProgramsTimelineStore.init({start: match.params.start}); diff --git a/src/v2/components/Transactions/Detail/ProgramsTab.jsx b/src/v2/components/Transactions/Detail/ProgramsTab.jsx index 52b58c60..e5e36257 100644 --- a/src/v2/components/Transactions/Detail/ProgramsTab.jsx +++ b/src/v2/components/Transactions/Detail/ProgramsTab.jsx @@ -6,9 +6,7 @@ import Program from './Program'; const ProgramsTab = ({transaction}: {transaction: Object}) => { const renderProgram = instruction => { - return ( - - ); + return ; }; return
    {map(renderProgram)(transaction.instructions)}
    ; };