mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-19 02:22:11 +01:00
Ensure files listed in side bar of tools are private
This commit is contained in:
@@ -7,6 +7,7 @@ import { useFilesModalContext } from "@app/contexts/FilesModalContext";
|
|||||||
import { useAllFiles } from "@app/contexts/FileContext";
|
import { useAllFiles } from "@app/contexts/FileContext";
|
||||||
import { useFileManager } from "@app/hooks/useFileManager";
|
import { useFileManager } from "@app/hooks/useFileManager";
|
||||||
import { StirlingFile } from "@app/types/fileContext";
|
import { StirlingFile } from "@app/types/fileContext";
|
||||||
|
import { PrivateContent } from "@app/components/shared/PrivateContent"
|
||||||
|
|
||||||
export interface FileStatusIndicatorProps {
|
export interface FileStatusIndicatorProps {
|
||||||
selectedFiles?: StirlingFile[];
|
selectedFiles?: StirlingFile[];
|
||||||
@@ -134,7 +135,9 @@ const FileStatusIndicator = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Text size="sm" c="dimmed" style={{ wordBreak: 'break-word', whiteSpace: 'normal' }}>
|
<Text size="sm" c="dimmed" style={{ wordBreak: 'break-word', whiteSpace: 'normal' }}>
|
||||||
✓ {selectedFiles.length === 1 ? t("fileSelected", "Selected: {{filename}}", { filename: selectedFiles[0]?.name }) : t("filesSelected", "{{count}} files selected", { count: selectedFiles.length })}
|
✓ {selectedFiles.length === 1
|
||||||
|
? <PrivateContent>{t("fileSelected", "Selected: {{filename}}", { filename: selectedFiles[0]?.name }) }</PrivateContent>
|
||||||
|
: t("filesSelected", "{{count}} files selected", { count: selectedFiles.length })}
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user