mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-02 12:53:26 +03:00
fix(electron): missing collection name in tab header (#7807)
fix AF-1177
This commit is contained in:
parent
009b5353b1
commit
fc19180451
@ -121,11 +121,19 @@ export const Component = function CollectionPage() {
|
||||
if (!collection) {
|
||||
return null;
|
||||
}
|
||||
return isEmpty(collection) ? (
|
||||
const inner = isEmpty(collection) ? (
|
||||
<Placeholder collection={collection} />
|
||||
) : (
|
||||
<CollectionDetail collection={collection} />
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<ViewIcon icon="collection" />
|
||||
<ViewTitle title={collection.name} />
|
||||
{inner}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
@ -157,8 +165,6 @@ const Placeholder = ({ collection }: { collection: Collection }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<ViewTitle title={collection.name} />
|
||||
<ViewIcon icon="collection" />
|
||||
<ViewHeader>
|
||||
<div
|
||||
style={{
|
||||
|
Loading…
Reference in New Issue
Block a user