From d9d542186b4d16f9867b79b10d7e70bab0d0af0c Mon Sep 17 00:00:00 2001 From: uknmr Date: Wed, 27 Nov 2024 09:07:39 +0900 Subject: [PATCH] =?UTF-8?q?fix(Header):=20enableNew=20=E3=82=92=E9=9A=A0?= =?UTF-8?q?=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Header/Header.tsx | 2 + .../Header/stories/Header.stories.tsx | 37 +------------------ 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/packages/smarthr-ui/src/components/Header/Header.tsx b/packages/smarthr-ui/src/components/Header/Header.tsx index 4878568e88..3539de4a98 100644 --- a/packages/smarthr-ui/src/components/Header/Header.tsx +++ b/packages/smarthr-ui/src/components/Header/Header.tsx @@ -56,6 +56,8 @@ type Props = { currentTenantId?: string /** テナントが選択された時に発火するコールバック関数 */ onTenantSelect?: (id: string) => void + /** @deprecated internal-ui から利用するので使わないでください。 */ + enableNew?: boolean } & VariantProps type ElementProps = Omit, keyof Props> diff --git a/packages/smarthr-ui/src/components/Header/stories/Header.stories.tsx b/packages/smarthr-ui/src/components/Header/stories/Header.stories.tsx index 6ecc62dffe..d7a9a7fb0e 100644 --- a/packages/smarthr-ui/src/components/Header/stories/Header.stories.tsx +++ b/packages/smarthr-ui/src/components/Header/stories/Header.stories.tsx @@ -1,12 +1,10 @@ import { action } from '@storybook/addon-actions' import React from 'react' -import { FaRegCircleQuestionIcon } from '../../Icon' import { Stack } from '../../Layout' import { Header } from '../Header' import { HeaderDropdownMenuButton } from '../HeaderDropdownMenuButton' import { HeaderLink } from '../HeaderLink' -import { LanguageSwitcher } from '../LanguageSwitcher' import type { Meta, StoryObj } from '@storybook/react' @@ -115,6 +113,7 @@ export default { options: Object.keys(_childrenOptions), mapping: _childrenOptions, }, + enableNew: { control: false }, }, args: {}, parameters: { @@ -175,37 +174,3 @@ export const Children: StoryObj = { children: _childrenOptions.あり, }, } - -export const EnableNew: StoryObj = { - name: 'enableNew', - render: ({ enableNew, ...rest }) => ( -
- } - enableNew={enableNew} - > - ヘルプ - - -
- ), - args: { - enableNew: true, - featureName: '基本機能', - apps: _appsOptions.あり, - }, -}