feat: optimize frontend document panel rendering and folder creation.

This commit is contained in:
2025-12-12 03:47:50 +01:00
parent 6ba8084caa
commit b6857bd0b3
5 changed files with 9 additions and 23 deletions
@@ -50,7 +50,7 @@ interface DocumentsPanelProps {
headerLeading?: ReactNode;
}
const DocumentsPanelInner: React.FC<DocumentsPanelProps> = (props) => {
const DocumentsPanelInner: React.FC<DocumentsPanelProps> = React.memo((props) => {
const { headerLeading } = props;
const shell = useAppShell();
const {
@@ -304,7 +304,9 @@ const DocumentsPanelInner: React.FC<DocumentsPanelProps> = (props) => {
</DocumentsViewStateContext.Provider>
</DocumentsAssetContext.Provider>
);
};
});
DocumentsPanelInner.displayName = 'DocumentsPanelInner';
const DocumentsPanel: React.FC<DocumentsPanelProps> = (props) => {
const shell = useAppShell();