Skip to content

Commit b7be256

Browse files
lorenzo-cavazziCopilot
andcommitted
Remove EntityWatermark placeholder
Co-authored-by: Copilot <copilot@github.com>
1 parent 2271e06 commit b7be256

4 files changed

Lines changed: 4 additions & 24 deletions

File tree

client/src/components/entityWatermark/EntityWatermark.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ interface EntityWatermarkProps {
2828
export function EntityWatermark({ className, type }: EntityWatermarkProps) {
2929
return (
3030
<div className="position-relative">
31+
<div className={cx(className, styles.EntityWatermarkPlaceholder)} />
3132
<div
3233
className={cx(
3334
"d-flex",
@@ -51,12 +52,3 @@ export function EntityWatermark({ className, type }: EntityWatermarkProps) {
5152
</div>
5253
);
5354
}
54-
55-
interface EntityWatermarkPlaceholderProps {
56-
className?: string;
57-
}
58-
export function EntityWatermarkPlaceholder({
59-
className,
60-
}: EntityWatermarkPlaceholderProps) {
61-
return <div className={cx(className, styles.EntityWatermarkPlaceholder)} />;
62-
}

client/src/features/ProjectPageV2/ProjectPageLayout/ProjectPageLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ import cx from "classnames";
2020
import { ReactNode } from "react";
2121
import { Col, Row } from "reactstrap";
2222

23-
import {
24-
EntityWatermark,
25-
EntityWatermarkPlaceholder,
26-
} from "~/components/entityWatermark/EntityWatermark";
23+
import { EntityWatermark } from "~/components/entityWatermark/EntityWatermark";
2724
import GroupNew from "~/features/groupsV2/new/GroupNew";
2825
import type { Project } from "~/features/projectsV2/api/projectV2.api";
2926
import ProjectV2New from "~/features/projectsV2/new/ProjectV2New";
@@ -52,7 +49,6 @@ export default function ProjectPageLayout({
5249
<ProjectPageHeader project={project} />
5350
</Col>
5451
<Col className={cx("d-md-block", "d-none")} md="auto">
55-
<EntityWatermarkPlaceholder />
5652
<EntityWatermark type="project" />
5753
</Col>
5854
</Row>

client/src/features/groupsV2/show/GroupPageLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ import { Col, Row } from "reactstrap";
2323

2424
import ProjectV2New from "~/features/projectsV2/new/ProjectV2New";
2525
import ContainerWrap from "../../../components/container/ContainerWrap";
26-
import {
27-
EntityWatermark,
28-
EntityWatermarkPlaceholder,
29-
} from "../../../components/entityWatermark/EntityWatermark";
26+
import { EntityWatermark } from "../../../components/entityWatermark/EntityWatermark";
3027
import PageNav, { PageNavOptions } from "../../../components/PageNav";
3128
import { ABSOLUTE_ROUTES } from "../../../routing/routes.constants";
3229
import type { GroupResponse } from "../../projectsV2/api/namespace.api";
@@ -65,7 +62,6 @@ export default function GroupPageLayout({
6562
<GroupHeader group={group} slug={group.slug} />
6663
</Col>
6764
<Col className={cx("d-md-block", "d-none")} md="auto">
68-
<EntityWatermarkPlaceholder />
6965
<EntityWatermark type="group" />
7066
</Col>
7167
</Row>

client/src/features/usersV2/show/UserPageLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ import { ReactNode } from "react";
2121
import { generatePath } from "react-router";
2222
import { Col, Row } from "reactstrap";
2323

24-
import {
25-
EntityWatermark,
26-
EntityWatermarkPlaceholder,
27-
} from "~/components/entityWatermark/EntityWatermark";
24+
import { EntityWatermark } from "~/components/entityWatermark/EntityWatermark";
2825
import RenkuBadge from "~/components/renkuBadge/RenkuBadge";
2926
import GroupNew from "~/features/groupsV2/new/GroupNew";
3027
import ProjectV2New from "~/features/projectsV2/new/ProjectV2New";
@@ -70,7 +67,6 @@ export default function UserPageLayout({
7067
<UserHeader name={name ?? ""} username={user.username} />
7168
</Col>
7269
<Col className={cx("d-md-block", "d-none")} md="auto">
73-
<EntityWatermarkPlaceholder />
7470
<EntityWatermark type="user" />
7571
</Col>
7672
</Row>

0 commit comments

Comments
 (0)