Skip to content

Commit

Permalink
Revert "chore(storybook): disable version picker addon"
Browse files Browse the repository at this point in the history
This reverts commit 4aa66ea.
  • Loading branch information
Parsium committed Aug 1, 2024
1 parent 9f9489a commit 4a3269a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import { addons } from "@storybook/manager-api";
import { types } from "@storybook/addons";
import sageTheme from "./sageTheme";
import { ADDON_ID, TOOL_ID } from "./version-picker/constants";
import { VersionPicker } from "./version-picker";
import { API_PreparedIndexEntry, API_StatusObject } from "@storybook/types";

if (process.env.NODE_ENV === "production") {
addons.register(ADDON_ID, () => {
addons.add(TOOL_ID, {
type: types.TOOL,
title: "Version picker",
match: ({ viewMode }) => !!(viewMode && viewMode.match(/^(story|docs)$/)),
render: VersionPicker,
});
});
}

addons.setConfig({
theme: sageTheme,
panelPosition: "bottom",
Expand Down

0 comments on commit 4a3269a

Please sign in to comment.