From 975b6a3b01ca2ecf62241aad1507e7f572a149bf Mon Sep 17 00:00:00 2001 From: saltrafael Date: Fri, 20 Aug 2021 09:47:04 -0300 Subject: [PATCH] Add Copy List button on Collection page --- ui/component/collectionActions/view.jsx | 100 ++++++++++++++---------- ui/page/collection/view.jsx | 20 +++-- ui/scss/component/_button.scss | 5 ++ 3 files changed, 76 insertions(+), 49 deletions(-) diff --git a/ui/component/collectionActions/view.jsx b/ui/component/collectionActions/view.jsx index 52f7d03c0..0b9dd963c 100644 --- a/ui/component/collectionActions/view.jsx +++ b/ui/component/collectionActions/view.jsx @@ -15,7 +15,7 @@ import { ENABLE_FILE_REACTIONS } from 'config'; type Props = { uri: string, claim: StreamClaim, - openModal: (id: string, { uri: string, claimIsMine?: boolean, isSupport?: boolean }) => void, + openModal: (id: string, {}) => void, myChannels: ?Array, doToast: ({ message: string }) => void, claimIsPending: boolean, @@ -24,6 +24,7 @@ type Props = { showInfo: boolean, setShowInfo: (boolean) => void, collectionHasEdits: boolean, + isBuiltin: boolean, }; function CollectionActions(props: Props) { @@ -37,6 +38,7 @@ function CollectionActions(props: Props) { showInfo, setShowInfo, collectionHasEdits, + isBuiltin, } = props; const { push } = useHistory(); const isMobile = useIsMobile(); @@ -44,54 +46,66 @@ function CollectionActions(props: Props) { const webShareable = true; // collections have cost? const lhsSection = ( <> - {ENABLE_FILE_REACTIONS && uri && } - {uri && } - {/* TODO Add ClaimRepostButton component */} - {uri && ( -