diff --git a/assets/images/icon-close-8x8@2x.png b/assets/images/icon-close-8x8@2x.png deleted file mode 100644 index 22fc24130..000000000 Binary files a/assets/images/icon-close-8x8@2x.png and /dev/null differ diff --git a/assets/images/icon-close-white-16x16@2x.png b/assets/images/icon-close-white-16x16@2x.png deleted file mode 100644 index 999954108..000000000 Binary files a/assets/images/icon-close-white-16x16@2x.png and /dev/null differ diff --git a/frontend/components/InfoBanner/InfoBanner.tsx b/frontend/components/InfoBanner/InfoBanner.tsx index 2833ec4f7..1eb8d6d02 100644 --- a/frontend/components/InfoBanner/InfoBanner.tsx +++ b/frontend/components/InfoBanner/InfoBanner.tsx @@ -10,7 +10,7 @@ export interface IInfoBannerProps { children?: React.ReactNode; className?: string; /** default light purple */ - color?: "yellow"; + color?: "yellow" | "grey"; pageLevel?: boolean; /** cta and link are mutually exclusive */ cta?: JSX.Element; diff --git a/frontend/components/InfoBanner/_styles.scss b/frontend/components/InfoBanner/_styles.scss index 2bca9b9b1..5902cba3d 100644 --- a/frontend/components/InfoBanner/_styles.scss +++ b/frontend/components/InfoBanner/_styles.scss @@ -15,6 +15,11 @@ border-color: $ui-yellow-banner-outline; } + &__grey { + background-color: $ui-off-white; + border-color: $ui-fleet-black-50; + } + &__page-banner { padding: $pad-large $pad-xlarge; margin-bottom: $pad-large; @@ -40,6 +45,10 @@ &:hover { cursor: pointer; + + svg path { + stroke: $core-vibrant-blue; + } } } } diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx index 43e573ac7..b64349713 100644 --- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx +++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx @@ -64,6 +64,7 @@ import Icon from "components/Icon/Icon"; // @ts-ignore import Dropdown from "components/forms/fields/Dropdown"; import TableContainer from "components/TableContainer"; +import InfoBanner from "components/InfoBanner/InfoBanner"; import { ITableQueryData } from "components/TableContainer/TableContainer"; import TableDataError from "components/DataError"; import { IActionButtonProps } from "components/TableContainer/DataTable/ActionButton/ActionButton"; @@ -84,7 +85,6 @@ import { DEFAULT_PAGE_INDEX, getHostSelectStatuses, MANAGE_HOSTS_PAGE_FILTER_KEYS, - ManageHostsPageQueryParams, } from "./HostsPageConfig"; import { isAcceptableStatus } from "./helpers"; @@ -97,7 +97,6 @@ import EditColumnsModal from "./components/EditColumnsModal/EditColumnsModal"; import TransferHostModal from "../components/TransferHostModal"; import DeleteHostModal from "../components/DeleteHostModal"; import DeleteLabelModal from "./components/DeleteLabelModal"; -import CloseIconBlack from "../../../../assets/images/icon-close-fleet-black-16x16@2x.png"; import LabelFilterSelect from "./components/LabelFilterSelect"; import HostsFilterBlock from "./components/HostsFilterBlock"; @@ -1470,24 +1469,19 @@ const ManageHostsPage = ({ ((canEnrollHosts && noTeamEnrollSecrets) || (canEnrollGlobalHosts && noGlobalEnrollSecrets)) && showNoEnrollSecretBanner && ( -
+
You have no enroll secrets. Manage enroll secrets to enroll hosts to {isAnyTeamSelected ? currentTeamName : "Fleet"}.
-
- -
-
+ ) ); }; diff --git a/frontend/pages/hosts/ManageHostsPage/_styles.scss b/frontend/pages/hosts/ManageHostsPage/_styles.scss index f07518019..e83c786b6 100644 --- a/frontend/pages/hosts/ManageHostsPage/_styles.scss +++ b/frontend/pages/hosts/ManageHostsPage/_styles.scss @@ -285,29 +285,6 @@ padding-bottom: $pad-large; } - &__no-enroll-secret-banner { - display: flex; - justify-content: space-between; - align-items: center; - font-size: $x-small; - background-color: $ui-off-white; - padding: $pad-large; - border-radius: 10px; - border: 1px solid $ui-fleet-black-50; - - .dismiss-banner-button { - display: flex; - align-items: center; - img { - height: 16px; - width: auto; - } - } - &:not(:only-child) { - margin-bottom: $pad-medium; - } - } - .total-issues-count { margin-left: $pad-small; }