Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 7, 2024
1 parent 1a55316 commit 639b388
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ui/pages/Transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import TextAd from 'ui/shared/ad/TextAd';
import isCustomAppError from 'ui/shared/AppError/isCustomAppError';
import EntityTags from 'ui/shared/EntityTags/EntityTags';
import PageTitle from 'ui/shared/Page/PageTitle';
import RoutedTabs from 'ui/shared/Tabs/RoutedTabs';
import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
// import RoutedTabs from 'ui/shared/Tabs/RoutedTabs';
// import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
import useTabIndexFromQuery from 'ui/shared/Tabs/useTabIndexFromQuery';
import TxAssetFlows from 'ui/tx/TxAssetFlows';
import TxBlobs from 'ui/tx/TxBlobs';
Expand Down Expand Up @@ -97,18 +97,18 @@ const TransactionPageContent = (props: { apiData: Transaction | null }) => {

const titleSecondRow = <TxSubHeading hash={ hash } hasTag={ Boolean(data?.tx_tag) } txQuery={ txQuery }/>;

const content = (() => {
if (isPlaceholderData && !showDegradedView) {
return (
<>
<TabsSkeleton tabs={ tabs } mt={ 6 }/>
{ tabs[tabIndex]?.component }
</>
);
}
// const content = (() => {
// if (isPlaceholderData && !showDegradedView) {
// return (
// <>
// <TabsSkeleton tabs={ tabs } mt={ 6 }/>
// { tabs[tabIndex]?.component }
// </>
// );
// }

return <RoutedTabs tabs={ tabs }/>;
})();
// return <RoutedTabs tabs={ tabs }/>;
// })();

if (isError && !showDegradedView) {
if (isCustomAppError(error)) {
Expand All @@ -125,7 +125,7 @@ const TransactionPageContent = (props: { apiData: Transaction | null }) => {
contentAfter={ tags }
secondRow={ titleSecondRow }
/>
{ content }
{ tabs[tabIndex]?.component }
</>
);
};
Expand Down

0 comments on commit 639b388

Please sign in to comment.