From ccd0e524b7c2d60362ea272140080e5cc52ab08a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 1 Jun 2022 10:29:45 -0500 Subject: show placeholder if no shares are configured --- src/web/src/components/System/Shares/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/web/src/components/System/Shares/index.js b/src/web/src/components/System/Shares/index.js index 5fe59cb2..53018b45 100644 --- a/src/web/src/components/System/Shares/index.js +++ b/src/web/src/components/System/Shares/index.js @@ -4,6 +4,7 @@ import { toast } from 'react-toastify'; import * as sharesLib from '../../../lib/shares'; import { LoaderSegment, + PlaceholderSegment, ShrinkableButton, Switch, } from '../../Shared'; @@ -64,6 +65,12 @@ const Index = ({ state = {} } = {}) => { } + empty={shared.length === 0 && + } > -- cgit v1.2.3