From a5cc1a84aae4ca2d1af8109a1ad5d091bcd967a5 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 29 Apr 2020 15:31:11 -0400 Subject: [PATCH] add card style for lists of claims --- ui/component/claimList/view.jsx | 10 ++++++++-- ui/component/claimTags/view.jsx | 2 +- ui/component/common/card.jsx | 6 +++--- ui/component/fileRender/view.jsx | 2 +- ui/component/recommendedContent/view.jsx | 21 ++++++++++++++------- ui/component/txoList/view.jsx | 2 +- ui/page/help/view.jsx | 2 +- ui/scss/component/_card.scss | 2 +- ui/scss/component/_claim-list.scss | 16 ++++++++++++++-- 9 files changed, 44 insertions(+), 19 deletions(-) diff --git a/ui/component/claimList/view.jsx b/ui/component/claimList/view.jsx index 727886cac..57b0c5674 100644 --- a/ui/component/claimList/view.jsx +++ b/ui/component/claimList/view.jsx @@ -6,7 +6,6 @@ import classnames from 'classnames'; import ClaimPreview from 'component/claimPreview'; import Spinner from 'component/spinner'; import { FormField } from 'component/common/form'; -import Card from 'component/common/card'; import usePersistedState from 'effects/use-persisted-state'; const SORT_NEW = 'new'; @@ -34,6 +33,7 @@ type Props = { hideBlock: boolean, injectedItem: ?Node, timedOutMessage?: Node, + isCardBody?: boolean, }; export default function ClaimList(props: Props) { @@ -58,6 +58,7 @@ export default function ClaimList(props: Props) { hideBlock, injectedItem, timedOutMessage, + isCardBody = false, } = props; const [scrollBottomCbMap, setScrollBottomCbMap] = useState({}); const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW); @@ -104,6 +105,7 @@ export default function ClaimList(props: Props) {
{header !== false && ( @@ -134,7 +136,11 @@ export default function ClaimList(props: Props) { )} {urisLength > 0 && ( -