Skip to content

Commit 865af0d

Browse files
committed
Switch entity plural to always stack in header
1 parent fc98a0f commit 865af0d

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

apps/hash-frontend/src/pages/shared/entity-type-page/shared/entity-type-header.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ export const EntityTypeHeader = ({
236236
gap={1.5}
237237
sx={{ position: "relative", top: 5 }}
238238
>
239-
<EntityTypePlural isLinkType={isLink} readonly={isReadonly} />
240-
{isLink && <EntityTypeInverse readonly={isReadonly} />}
239+
<EntityTypePlural isLinkType readonly={isReadonly} />
241240
</Stack>
242241
</Stack>
243242
{!isDraft && !isArchived ? (

apps/hash-frontend/src/pages/shared/entity-type.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ import {
4949
typeHeaderContainerStyles,
5050
} from "./shared/type-editor-styling";
5151
import { useSlideStack } from "./slide-stack";
52-
import { backForwardHeight } from "./slide-stack/slide-back-forward-close-bar";
5352
import { TopContextBar } from "./top-context-bar";
5453

5554
import type {
@@ -503,7 +502,7 @@ export const EntityType = ({
503502
// @todo confirmation of discard when draft
504503
isDraft
505504
? {
506-
href: `new/type/${isLink ? "link" : "entity"}-type`,
505+
href: `new/types/${isLink ? "link" : "entity"}-type`,
507506
}
508507
: {
509508
onClick() {

0 commit comments

Comments
 (0)