mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
e8a403e342
* Following up on the work from Idf90ee2a0f1c1d08a31cf50099c0bebc7b67e619, this commit renames the storybook files/storybook names to their respective component name. e.g. personalNavigation.stories.js => PersonalMenu.stories.js Bug: T243281 Change-Id: I68054663c5a597f90a826b6f75bf399382dca609
22 lines
713 B
JavaScript
22 lines
713 B
JavaScript
import mustache from 'mustache';
|
|
import '../.storybook/common.less';
|
|
import '../resources/skins.vector.styles/Sidebar.less';
|
|
import '../resources/skins.vector.styles/Portal.less';
|
|
import { sidebarTemplate, SIDEBAR_DATA, SIDEBAR_TEMPLATE_PARTIALS } from './Sidebar.stories.data';
|
|
|
|
export default {
|
|
title: 'Sidebar'
|
|
};
|
|
|
|
export const sidebarWithNoPortals = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.withNoPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarWithPortals = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.withPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarThirdParty = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.thirdParty, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|