Skip to content

Commit

Permalink
feat(console): add icon to the Secret resource (#4230)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex authored Sep 20, 2023
1 parent 9fd1fe9 commit 1d44e45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/wing-console/console/app/demo/main.w
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
MegaphoneIcon,
QueueListIcon,
TableCellsIcon,
LockClosedIcon,
} from "@heroicons/react/24/outline";
import {
ArchiveBoxIcon as SolidArchiveBoxIcon,
Expand All @@ -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";
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d44e45

Please sign in to comment.