We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f83785 commit bbaf4a8Copy full SHA for bbaf4a8
.storybook/preview.js
@@ -78,16 +78,16 @@ export const parameters = {
78
79
const { getHardCodedWeight } = (() => {
80
81
- const mainServices = [
+ const orderedPagesPrefix = [
82
"🇫🇷 Introduction",
83
"components",
84
];
85
86
function getHardCodedWeight(kind) {
87
88
- for (let i = 0; i < mainServices.length; i++) {
89
- if (kind.toLowerCase().startsWith(mainServices[i].toLowerCase())) {
90
- return mainServices.length - i;
+ for (let i = 0; i < orderedPagesPrefix.length; i++) {
+ if (kind.toLowerCase().startsWith(orderedPagesPrefix[i].toLowerCase())) {
+ return orderedPagesPrefix.length - i;
91
}
92
93
0 commit comments