diff --git a/src/components/CollectionShare.tsx b/src/components/CollectionShare.tsx index 1390e7f51..bc2dce5dc 100644 --- a/src/components/CollectionShare.tsx +++ b/src/components/CollectionShare.tsx @@ -18,7 +18,7 @@ import SubmitButton from './SubmitButton'; import MessageDialog from './MessageDialog'; import { Collection } from 'types/collection'; import { appendCollectionKeyToShareURL } from 'utils/collection'; -import { Row, Value } from './Container'; +import { FlexWrapper } from './Container'; import { CodeBlock } from './CodeBlock'; import { ButtonVariant, getVariantColor } from './pages/gallery/LinkButton'; import { handleSharingErrors } from 'utils/error'; @@ -138,7 +138,7 @@ function CollectionShare(props: Props) { content: constants.DISABLE_PUBLIC_SHARING_MESSAGE, close: { text: constants.CANCEL }, proceed: { - text: constants.DELETE, + text: constants.DISABLE, action: disablePublicSharingHelper, variant: ButtonVariant.danger, }, @@ -240,41 +240,7 @@ function CollectionShare(props: Props) { )} - - - {constants.PUBLIC_SHARING} - - - - - {sharableLinkError} - -
- - {publicShareUrl && ( -
- <>{constants.PUBLIC_URL} - -
- )} - {props.collection.sharees?.length > 0 && ( + {props.collection.sharees?.length > 0 ? ( <>

{constants.SHAREES}

@@ -290,12 +256,48 @@ function CollectionShare(props: Props) { - )} - {props.collection.sharees?.length === 0 && !publicShareUrl && ( + ) : (
{constants.ZERO_SHAREES()}
)} +
+
+ + + {constants.PUBLIC_SHARING} + + + + {sharableLinkError && ( + + {sharableLinkError} + + )} +
+ {publicShareUrl && ( +
+ <>{constants.PUBLIC_URL} + +
+ )} ); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 71c502fd6..f232c040a 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -146,6 +146,7 @@ export default function LandingPage() { await router.push(PAGES.VERIFY); } await initLocalForage(); + setLoading(false); }; const initLocalForage = async () => { diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index ede4c828b..abc5a7545 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -357,7 +357,7 @@ const englishConstants = {
), - PUBLIC_URL: 'publicly sharable url', + PUBLIC_URL: 'public link', SHARE_WITH_SELF: 'oops, you cannot share with yourself', ALREADY_SHARED: (email) => `oops, you're already sharing this with ${email}`,