Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

refactor: improve public share options layout and remove unused hint

anandbaburajanc45e4a5f65dd
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index a7d35dcd86..588c8b3f75 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -30,7 +30,6 @@ import {
RowButtonDivider,
RowButtonEndActivityIndicator,
RowButtonGroup,
- RowButtonGroupHint,
RowButtonGroupTitle,
RowLabel,
RowSwitch,
@@ -1417,6 +1416,14 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
title={t("share_album")}
>
<Stack sx={{ gap: 3, py: "20px", px: "8px" }}>
+ <ManageView
+ {...{
+ collection,
+ onRootClose,
+ onRemotePull,
+ setBlockingLoad,
+ }}
+ />
<ManagePublicCollect
{...{ publicURL }}
onUpdate={handlePublicURLUpdate}
@@ -1441,14 +1448,6 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
onUpdate={handlePublicURLUpdate}
/>
</RowButtonGroup>
- <ManageView
- {...{
- collection,
- onRootClose,
- onRemotePull,
- setBlockingLoad,
- }}
- />
<RowButtonGroup>
<RowButton
startIcon={
@@ -1517,9 +1516,6 @@ const ManagePublicCollect: React.FC<ManagePublicLinkSettingProps> = ({
onClick={handleFileDownloadSetting}
/>
</RowButtonGroup>
- <RowButtonGroupHint>
- {t("allow_adding_photos_hint")}
- </RowButtonGroupHint>
</Stack>
);
};