From 8514c6c63d8321f8717b3fc90f35da91359bfc9b Mon Sep 17 00:00:00 2001 From: Evan Johnson Date: Fri, 28 Jun 2024 14:03:13 -0400 Subject: [PATCH] cleanup none --- .../core-examples/common/iconNames.ts | 8 ++----- .../core-examples/common/iconSelect.tsx | 21 +++++++------------ 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/packages/docs-app/src/examples/core-examples/common/iconNames.ts b/packages/docs-app/src/examples/core-examples/common/iconNames.ts index 22079ce418..87e3e7bda8 100644 --- a/packages/docs-app/src/examples/core-examples/common/iconNames.ts +++ b/packages/docs-app/src/examples/core-examples/common/iconNames.ts @@ -16,14 +16,10 @@ import { type IconName, IconNames } from "@blueprintjs/icons"; -export const NONE = "None"; -export type IconNameOrNone = IconName | typeof NONE; - -export function getIconNames(): IconNameOrNone[] { - const iconNames = new Set(); +export function getIconNames(): IconName[] { + const iconNames = new Set(); for (const [, name] of Object.entries(IconNames)) { iconNames.add(name); } - iconNames.add(NONE); return Array.from(iconNames.values()); } diff --git a/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx b/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx index 7b04f0b788..94b63d52fa 100644 --- a/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx +++ b/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx @@ -21,7 +21,7 @@ import { Alignment, Button, Classes, MenuItem } from "@blueprintjs/core"; import type { IconName } from "@blueprintjs/icons"; import { type ItemRenderer, Select } from "@blueprintjs/select"; -import { getIconNames, type IconNameOrNone, NONE } from "./iconNames"; +import { getIconNames } from "./iconNames"; const ICON_NAMES = getIconNames(); @@ -37,7 +37,7 @@ export class IconSelect extends React.PureComponent { return (