Skip to content

Commit

Permalink
chore: restore WipBadge old text
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-cavazzi committed Apr 29, 2024
1 parent 88117fe commit 2dcdf42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions client/src/features/projectsV2/shared/WipBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,21 @@ import { Badge, UncontrolledTooltip } from "reactstrap";

type WipBadeProps = {
label?: string;
text?: string;
};

export default function WipBadge({ label = "Alpha" }: WipBadeProps) {
export default function WipBadge({
label = "Alpha",
text = "Renku 2.0 is under active development and features may not work as expected.",
}: WipBadeProps) {
const ref = useRef<HTMLElement>(null);

return (
<>
<Badge className="wip-badge" color="warning" innerRef={ref}>
{label}
</Badge>
<UncontrolledTooltip target={ref}>
Renku 2.0 is under active development and features may not work as
expected.
</UncontrolledTooltip>
<UncontrolledTooltip target={ref}>{text}</UncontrolledTooltip>
</>
);
}
2 changes: 1 addition & 1 deletion client/src/features/secrets/Secrets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Secrets() {
<div className={cx("d-flex", "mb-2")}>
<h2 className={cx("mb-0", "me-2")}>User Secrets</h2>
<div className="my-auto">
<WipBadge />
<WipBadge text="This feature is under development and certain pieces may not work correctly." />
</div>
</div>
<div>{pageInfo}</div>
Expand Down

0 comments on commit 2dcdf42

Please sign in to comment.