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.あり, - }, -}