From 754f3d83b8b43df9e2e73a1d051b0b574b9b7207 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 8 Dec 2023 02:07:30 +0000 Subject: [PATCH] [Enhance] Implement Validation for Icon Input Source & Set Default Icon to `Beaker` (#1137) * Revise the logic to handle default icon Signed-off-by: Willie Hung * Categorize different input icon types Signed-off-by: Willie Hung * Remove unused code Signed-off-by: Willie Hung * Update CHANGELOG.md Signed-off-by: Willie Hung * Use readable parameter name Signed-off-by: Willie Hung * Handle different input cases and add tests Signed-off-by: Willie Hung --------- Signed-off-by: Willie Hung Co-authored-by: Josh Romero (cherry picked from commit 0d3b6ccf04f514c26bf3eeca085f286bd85b8800) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .../icon/__snapshots__/icon.test.tsx.snap | 52 +++++++++++++++++- src/components/icon/icon.test.tsx | 55 ++++++++++++++----- src/components/icon/icon.tsx | 52 ++++++++++-------- 3 files changed, 121 insertions(+), 38 deletions(-) diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 8ae3b0f871..2480d0d500 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -10184,7 +10184,7 @@ exports[`OuiIcon props type wrench is rendered 1`] = ` `; -exports[`OuiIcon renders custom components 1`] = ` +exports[`OuiIcon render different types of icons renders custom components 1`] = `