feat: optimize frontend document panel rendering and folder creation.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user