From 1310deb17aec91f368f99974aaa245abb0a3e201 Mon Sep 17 00:00:00 2001 From: Cafe137 <77121044+Cafe137@users.noreply.github.com> Date: Tue, 25 Jan 2022 18:02:20 +0100 Subject: [PATCH] fix: disable feeds page when disconnected (#293) --- src/pages/feeds/index.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/feeds/index.tsx b/src/pages/feeds/index.tsx index f2f9759..209d9a7 100644 --- a/src/pages/feeds/index.tsx +++ b/src/pages/feeds/index.tsx @@ -7,6 +7,7 @@ import ExpandableListItem from '../../components/ExpandableListItem' import ExpandableListItemActions from '../../components/ExpandableListItemActions' import ExpandableListItemKey from '../../components/ExpandableListItemKey' import { SwarmButton } from '../../components/SwarmButton' +import TroubleshootConnectionCard from '../../components/TroubleshootConnectionCard' import { Context as BeeContext } from '../../providers/Bee' import { Context as IdentityContext, Identity } from '../../providers/Feeds' import { ROUTES } from '../../routes' @@ -59,6 +60,8 @@ export default function Feeds(): ReactElement { setShowDelete(true) } + if (!status.all) return + return (
{showImport && setShowImport(false)} />} @@ -95,11 +98,9 @@ export default function Feeds(): ReactElement { {x.feedHash && } - {status.all && ( - viewFeed(x.uuid)} iconType={Info}> - View Feed Page - - )} + viewFeed(x.uuid)} iconType={Info}> + View Feed Page + onShowExport(x)} iconType={Download}> Export...