diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs')
-rw-r--r-- | browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs b/browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs index 0f7ff9299b..29b57812bd 100644 --- a/browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs +++ b/browser/components/storybook/.storybook/addon-fluent/preset/manager.mjs @@ -4,13 +4,10 @@ /** This file handles registering the Storybook addon */ -// eslint-disable-next-line no-unused-vars -import React from "react"; -import { addons, types } from "@storybook/addons"; +import { addons, types } from "@storybook/manager-api"; import { ADDON_ID, PANEL_ID, TOOL_ID } from "../constants.mjs"; -import { PseudoLocalizationButton } from "../PseudoLocalizationButton.mjs"; -// eslint-disable-next-line no-unused-vars -import { FluentPanel } from "../FluentPanel.mjs"; +import { PseudoLocalizationButton } from "../PseudoLocalizationButton.jsx"; +import { FluentPanel } from "../FluentPanel.jsx"; // Register the addon. addons.register(ADDON_ID, api => { @@ -27,8 +24,6 @@ addons.register(ADDON_ID, api => { title: "Fluent", //👇 Sets the type of UI element in Storybook type: types.PANEL, - render: ({ active, key }) => ( - <FluentPanel active={active} api={api} key={key}></FluentPanel> - ), + render: ({ active }) => FluentPanel({ active }), }); }); |