diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ac9a2c48e3463..76a42c9d2b551d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## June 2021 +- Adding `ItemsList` component as a more maintainable and consistent way to render a list of workspaces, git integrations, environment variables, etc. ([#4454](https://github.com/gitpod-io/gitpod/pull/4454)) - Improve backup stability when pods get evicted ([#4405](https://github.com/gitpod-io/gitpod/pull/4405)) - Fix text color in workspaces list for dark theme ([#4410](https://github.com/gitpod-io/gitpod/pull/4410)) - Better reflect incremental prebuilds in prebuilt workspace logs ([#4293](https://github.com/gitpod-io/gitpod/pull/4293)) diff --git a/components/dashboard/src/components/ContextMenu.tsx b/components/dashboard/src/components/ContextMenu.tsx index abd735000e1565..b4b1d4935b1657 100644 --- a/components/dashboard/src/components/ContextMenu.tsx +++ b/components/dashboard/src/components/ContextMenu.tsx @@ -8,7 +8,7 @@ import { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; export interface ContextMenuProps { - children: React.ReactChild[] | React.ReactChild; + children?: React.ReactChild[] | React.ReactChild; menuEntries: ContextMenuEntry[]; width?: string; } @@ -57,13 +57,16 @@ function ContextMenu(props: ContextMenuProps) { const menuId = String(Math.random()); + // Default 'children' is the three dots hamburger button. + const children = props.children || ; + return (
Unpinned workspaces that have been stopped for more than 14 days will be automatically deleted. Learn more
-