mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Fix: Component definition is missing display name. (#14255)
### What problem does this PR solve? Fix: Component definition is missing display name. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -9,7 +9,12 @@ type Props = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export default ({ size, name, create_date, className }: Props) => {
|
||||
export default function DocumentHeader({
|
||||
size,
|
||||
name,
|
||||
create_date,
|
||||
className,
|
||||
}: Props) {
|
||||
const sizeName = formatBytes(size);
|
||||
const dateStr = formatDate(create_date);
|
||||
|
||||
@@ -32,4 +37,4 @@ export default ({ size, name, create_date, className }: Props) => {
|
||||
</dl>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user