Skip to content

Commit 4319c14

Browse files
committed
Improve story order
1 parent 57e77e9 commit 4319c14

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { StorybookConfig } from "@storybook/react-vite"
22

33
const config: StorybookConfig = {
4-
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)", "../src/**/*.mdx"],
4+
stories: ["../src/stories/ReactSearchComponent.stories.tsx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)", "../src/**/*.mdx"],
55
addons: ["@storybook/addon-themes", "@storybook/addon-docs"],
66
framework: {
77
name: "@storybook/react-vite",

src/stories/ReactSearchComponent.stories.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ const demoConfig: SearchConfig = {
140140
imageProxy: (src) => `https://wsrv.nl/?url=${src}&h=1000&output=webp&ll`
141141
}
142142

143-
export const NoResultRenderer: Story = {
144-
args: {
145-
config: demoConfig,
146-
resultView: null!
147-
}
148-
}
149-
150143
export const GenericResultRenderer: Story = {
151144
args: {
152145
config: demoConfig,
@@ -228,3 +221,10 @@ export const GenericResultRenderer: Story = {
228221
)
229222
}
230223
}
224+
225+
export const NoResultRenderer: Story = {
226+
args: {
227+
config: demoConfig,
228+
resultView: null!
229+
}
230+
}

0 commit comments

Comments
 (0)