From 1d44e4527672958d866447c9c8d3539d72170cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Wed, 20 Sep 2023 16:20:37 +0200 Subject: [PATCH] feat(console): add icon to the Secret resource (#4230) --- apps/wing-console/console/app/demo/main.w | 2 ++ .../console/design-system/src/utils/icon-utils.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/apps/wing-console/console/app/demo/main.w b/apps/wing-console/console/app/demo/main.w index c75e994ed23..4d2c6edf5f7 100644 --- a/apps/wing-console/console/app/demo/main.w +++ b/apps/wing-console/console/app/demo/main.w @@ -1,6 +1,8 @@ bring cloud; bring ex; +let secret = new cloud.Secret(name: "my-secret"); + let bucket = new cloud.Bucket(); let queue = new cloud.Queue(); let api = new cloud.Api(); diff --git a/apps/wing-console/console/design-system/src/utils/icon-utils.ts b/apps/wing-console/console/design-system/src/utils/icon-utils.ts index eb0bba2c3bb..532b3dcf1f3 100644 --- a/apps/wing-console/console/design-system/src/utils/icon-utils.ts +++ b/apps/wing-console/console/design-system/src/utils/icon-utils.ts @@ -10,6 +10,7 @@ import { MegaphoneIcon, QueueListIcon, TableCellsIcon, + LockClosedIcon, } from "@heroicons/react/24/outline"; import { ArchiveBoxIcon as SolidArchiveBoxIcon, @@ -22,6 +23,7 @@ import { MegaphoneIcon as SolidMegaphoneIcon, QueueListIcon as SolidQueueListIcon, TableCellsIcon as SolidTableCellsIcon, + LockClosedIcon as SolidLockClosedIcon, } from "@heroicons/react/24/solid"; import { DynamoDBIcon } from "../icons/dynamodb-icon.js"; @@ -76,6 +78,9 @@ export const getResourceIconComponent = ( case "wingsdk.cloud.Test": { return solid ? SolidBeakerIcon : BeakerIcon; } + case "wingsdk.cloud.Secret": { + return solid ? SolidLockClosedIcon : LockClosedIcon; + } case "wingsdk.ex.DynamodbTable": { return DynamoDBIcon; }