From 3d8582a5ab097e8dec3a995ef463981ebb1d7984 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Tue, 11 Mar 2025 13:00:05 -0300 Subject: [PATCH] feat: Change Anthropic SVG icon (#6968) * change anthtropic icon * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../Anthropic/Anthropic icon - Ivory.svg | 4 ++ .../Anthropic/Anthropic icon - Slate.svg | 4 ++ .../src/icons/Anthropic/Anthropic.jsx | 50 ++++++++++++------- .../src/icons/Anthropic/AnthropicBox.jsx | 22 -------- .../src/icons/Anthropic/anthropic.svg | 9 ---- .../src/icons/Anthropic/anthropic_box.svg | 11 ---- src/frontend/src/icons/Anthropic/index.tsx | 6 +-- 7 files changed, 43 insertions(+), 63 deletions(-) create mode 100644 src/frontend/src/icons/Anthropic/Anthropic icon - Ivory.svg create mode 100644 src/frontend/src/icons/Anthropic/Anthropic icon - Slate.svg delete mode 100644 src/frontend/src/icons/Anthropic/AnthropicBox.jsx delete mode 100644 src/frontend/src/icons/Anthropic/anthropic.svg delete mode 100644 src/frontend/src/icons/Anthropic/anthropic_box.svg diff --git a/src/frontend/src/icons/Anthropic/Anthropic icon - Ivory.svg b/src/frontend/src/icons/Anthropic/Anthropic icon - Ivory.svg new file mode 100644 index 000000000..688c1e9ca --- /dev/null +++ b/src/frontend/src/icons/Anthropic/Anthropic icon - Ivory.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/frontend/src/icons/Anthropic/Anthropic icon - Slate.svg b/src/frontend/src/icons/Anthropic/Anthropic icon - Slate.svg new file mode 100644 index 000000000..facf06b8b --- /dev/null +++ b/src/frontend/src/icons/Anthropic/Anthropic icon - Slate.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/frontend/src/icons/Anthropic/Anthropic.jsx b/src/frontend/src/icons/Anthropic/Anthropic.jsx index c5615c062..58036979d 100644 --- a/src/frontend/src/icons/Anthropic/Anthropic.jsx +++ b/src/frontend/src/icons/Anthropic/Anthropic.jsx @@ -1,17 +1,33 @@ -const SvgAnthropic = (props) => ( - - - -); -export default SvgAnthropic; +const SvgAnthropicBox = (props) => { + return props.isDark ? ( + + + + + ) : ( + + + + + ); +}; + +export default SvgAnthropicBox; diff --git a/src/frontend/src/icons/Anthropic/AnthropicBox.jsx b/src/frontend/src/icons/Anthropic/AnthropicBox.jsx deleted file mode 100644 index f31af1f0e..000000000 --- a/src/frontend/src/icons/Anthropic/AnthropicBox.jsx +++ /dev/null @@ -1,22 +0,0 @@ -const SvgAnthropicBox = (props) => ( - - - - - - -); -export default SvgAnthropicBox; diff --git a/src/frontend/src/icons/Anthropic/anthropic.svg b/src/frontend/src/icons/Anthropic/anthropic.svg deleted file mode 100644 index 67ae02ea5..000000000 --- a/src/frontend/src/icons/Anthropic/anthropic.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/frontend/src/icons/Anthropic/anthropic_box.svg b/src/frontend/src/icons/Anthropic/anthropic_box.svg deleted file mode 100644 index fa9923ed7..000000000 --- a/src/frontend/src/icons/Anthropic/anthropic_box.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/frontend/src/icons/Anthropic/index.tsx b/src/frontend/src/icons/Anthropic/index.tsx index 651223a88..2ee064190 100644 --- a/src/frontend/src/icons/Anthropic/index.tsx +++ b/src/frontend/src/icons/Anthropic/index.tsx @@ -1,6 +1,6 @@ import { useDarkStore } from "@/stores/darkStore"; import React, { forwardRef } from "react"; -import SvgAnthropicBox from "./AnthropicBox"; +import SvgAnthropicBox from "./Anthropic"; export const AnthropicIcon = forwardRef< SVGSVGElement, @@ -8,7 +8,5 @@ export const AnthropicIcon = forwardRef< >((props, ref) => { const isDark = useDarkStore((state) => state.dark); - return ( - - ); + return ; });