From f01f04a1eb92d9febf36162c32a90bdba2b8eb0f Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Wed, 25 Dec 2024 01:28:50 +0300 Subject: [PATCH 1/3] feat: AIX icon added --- .../Common/Select/index.stories.tsx | 6 +++ .../Release/OperatingSystemDropdown.tsx | 2 +- apps/site/components/Icons/Platform/AIX.tsx | 46 +++++++++++++++++++ .../__design__/platform-logos.stories.tsx | 2 + 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 apps/site/components/Icons/Platform/AIX.tsx diff --git a/apps/site/components/Common/Select/index.stories.tsx b/apps/site/components/Common/Select/index.stories.tsx index c233b69cf1f17..74676168755c8 100644 --- a/apps/site/components/Common/Select/index.stories.tsx +++ b/apps/site/components/Common/Select/index.stories.tsx @@ -1,6 +1,7 @@ import type { Meta as MetaObj, StoryObj } from '@storybook/react'; import Select from '@/components/Common/Select'; +import Aix from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; import Linux from '@/components/Icons/Platform/Linux'; import Microsoft from '@/components/Icons/Platform/Microsoft'; @@ -90,6 +91,11 @@ export const InlineSelect: Story = { label: 'Windows', iconImage: , }, + { + value: 'aix', + label: 'Aix', + iconImage: , + }, ], }, ], diff --git a/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx b/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx index eccb0f21cc4e7..76f1f3982ba05 100644 --- a/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx +++ b/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx @@ -5,8 +5,8 @@ import { useContext, useEffect } from 'react'; import type { FC } from 'react'; import Select from '@/components/Common/Select'; +import Aix from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; -import Aix from '@/components/Icons/Platform/Generic'; import Linux from '@/components/Icons/Platform/Linux'; import Microsoft from '@/components/Icons/Platform/Microsoft'; import { useDetectOS } from '@/hooks/react-client'; diff --git a/apps/site/components/Icons/Platform/AIX.tsx b/apps/site/components/Icons/Platform/AIX.tsx new file mode 100644 index 0000000000000..02f40c1ca2a85 --- /dev/null +++ b/apps/site/components/Icons/Platform/AIX.tsx @@ -0,0 +1,46 @@ +import type { FC, SVGProps } from 'react'; + +const Aix: FC> = props => ( + + + + + + + + + + +); + +export default Aix; diff --git a/apps/site/components/__design__/platform-logos.stories.tsx b/apps/site/components/__design__/platform-logos.stories.tsx index e383be1216b01..cb5e92e7504bf 100644 --- a/apps/site/components/__design__/platform-logos.stories.tsx +++ b/apps/site/components/__design__/platform-logos.stories.tsx @@ -1,5 +1,6 @@ import type { Meta as MetaObj, StoryObj } from '@storybook/react'; +import Aix from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; import Choco from '@/components/Icons/Platform/Choco'; import Docker from '@/components/Icons/Platform/Docker'; @@ -16,6 +17,7 @@ export const PlatformLogos: StoryObj = { +
From 0285e530b52ccc033e30eda81e93b185e18dd1dd Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Wed, 25 Dec 2024 01:37:19 +0300 Subject: [PATCH 2/3] chore: AIX naming --- apps/site/components/Common/Select/index.stories.tsx | 4 ++-- .../components/Downloads/Release/OperatingSystemDropdown.tsx | 4 ++-- apps/site/components/Icons/Platform/AIX.tsx | 4 ++-- apps/site/components/__design__/platform-logos.stories.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/site/components/Common/Select/index.stories.tsx b/apps/site/components/Common/Select/index.stories.tsx index 74676168755c8..e7fe135028bdf 100644 --- a/apps/site/components/Common/Select/index.stories.tsx +++ b/apps/site/components/Common/Select/index.stories.tsx @@ -1,7 +1,7 @@ import type { Meta as MetaObj, StoryObj } from '@storybook/react'; import Select from '@/components/Common/Select'; -import Aix from '@/components/Icons/Platform/AIX'; +import AIX from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; import Linux from '@/components/Icons/Platform/Linux'; import Microsoft from '@/components/Icons/Platform/Microsoft'; @@ -94,7 +94,7 @@ export const InlineSelect: Story = { { value: 'aix', label: 'Aix', - iconImage: , + iconImage: , }, ], }, diff --git a/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx b/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx index 76f1f3982ba05..342b55c85386e 100644 --- a/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx +++ b/apps/site/components/Downloads/Release/OperatingSystemDropdown.tsx @@ -5,7 +5,7 @@ import { useContext, useEffect } from 'react'; import type { FC } from 'react'; import Select from '@/components/Common/Select'; -import Aix from '@/components/Icons/Platform/AIX'; +import AIX from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; import Linux from '@/components/Icons/Platform/Linux'; import Microsoft from '@/components/Icons/Platform/Microsoft'; @@ -57,7 +57,7 @@ const OperatingSystemDropdown: FC = ({ WIN: , MAC: , LINUX: , - AIX: , + AIX: , }, })} ariaLabel={t('layouts.download.dropdown.os')} diff --git a/apps/site/components/Icons/Platform/AIX.tsx b/apps/site/components/Icons/Platform/AIX.tsx index 02f40c1ca2a85..53f9f40b762e5 100644 --- a/apps/site/components/Icons/Platform/AIX.tsx +++ b/apps/site/components/Icons/Platform/AIX.tsx @@ -1,6 +1,6 @@ import type { FC, SVGProps } from 'react'; -const Aix: FC> = props => ( +const AIX: FC> = props => ( > = props => ( ); -export default Aix; +export default AIX; diff --git a/apps/site/components/__design__/platform-logos.stories.tsx b/apps/site/components/__design__/platform-logos.stories.tsx index cb5e92e7504bf..29cea28d7f916 100644 --- a/apps/site/components/__design__/platform-logos.stories.tsx +++ b/apps/site/components/__design__/platform-logos.stories.tsx @@ -1,6 +1,6 @@ import type { Meta as MetaObj, StoryObj } from '@storybook/react'; -import Aix from '@/components/Icons/Platform/AIX'; +import AIX from '@/components/Icons/Platform/AIX'; import Apple from '@/components/Icons/Platform/Apple'; import Choco from '@/components/Icons/Platform/Choco'; import Docker from '@/components/Icons/Platform/Docker'; @@ -17,7 +17,7 @@ export const PlatformLogos: StoryObj = { - +
From 52537c75a797ffde4896d91fccb57fefa66dd7e9 Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Wed, 25 Dec 2024 01:38:47 +0300 Subject: [PATCH 3/3] chore: AIX naming --- apps/site/components/Common/Select/index.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/components/Common/Select/index.stories.tsx b/apps/site/components/Common/Select/index.stories.tsx index e7fe135028bdf..59b5da23b7f48 100644 --- a/apps/site/components/Common/Select/index.stories.tsx +++ b/apps/site/components/Common/Select/index.stories.tsx @@ -93,7 +93,7 @@ export const InlineSelect: Story = { }, { value: 'aix', - label: 'Aix', + label: 'AIX', iconImage: , }, ],