Skip to content

armgit / ente

Public Imported from GitHub
0

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

[share] Remove content heading for notes type in locker display

Anand Baburajane8499f1cef49
diff --git a/web/apps/share/src/components/file-share/CopyableField.tsx b/web/apps/share/src/components/file-share/CopyableField.tsx
index 542b703094..40a7f1a1e9 100644
--- a/web/apps/share/src/components/file-share/CopyableField.tsx
+++ b/web/apps/share/src/components/file-share/CopyableField.tsx
@@ -4,7 +4,7 @@ import { Box, IconButton, Typography } from "@mui/material";
import React, { useState } from "react";
interface CopyableFieldProps {
- label: string;
+ label?: string;
value: string;
onCopy: (value: string) => void;
multiline?: boolean;
@@ -30,18 +30,20 @@ export const CopyableField: React.FC<CopyableFieldProps> = ({
return (
<Box>
- <Typography
- variant="h6"
- sx={{
- fontWeight: 500,
- fontSize: "16px",
- color: "#000000",
- mb: 1,
- mt: 3,
- }}
- >
- {label}
- </Typography>
+ {label && (
+ <Typography
+ variant="h6"
+ sx={{
+ fontWeight: 500,
+ fontSize: "16px",
+ color: "#000000",
+ mb: 1,
+ mt: 3,
+ }}
+ >
+ {label}
+ </Typography>
+ )}
<Box sx={{ position: "relative" }}>
<Box
sx={{
diff --git a/web/apps/share/src/components/file-share/LockerTypeDisplay.tsx b/web/apps/share/src/components/file-share/LockerTypeDisplay.tsx
index 423ca759cc..cce1dfa21c 100644
--- a/web/apps/share/src/components/file-share/LockerTypeDisplay.tsx
+++ b/web/apps/share/src/components/file-share/LockerTypeDisplay.tsx
@@ -28,7 +28,6 @@ export const LockerTypeDisplay: React.FC<LockerTypeDisplayProps> = ({
<>
{data.content && (
<CopyableField
- label="Content"
value={data.content}
onCopy={onCopy}
multiline