mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
fix(ui): address Storybook review feedback
This commit is contained in:
1 parent
8b515ee584
commit
130aa5fd22
1 file changed
+6
-4
@@ -1,4 +1,4 @@
|
||||
import { useState, type ReactNode } from "react";
|
||||
import { useEffect, useState, type ReactNode } from "react";
|
||||
import type { Preview } from "@storybook/react-vite";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { MemoryRouter } from "@/lib/router";
|
||||
@@ -174,8 +174,10 @@ function StorybookProviders({
|
||||
}),
|
||||
);
|
||||
|
||||
applyStorybookTheme(theme);
|
||||
installStorybookApiFixtures();
|
||||
useEffect(() => {
|
||||
applyStorybookTheme(theme);
|
||||
installStorybookApiFixtures();
|
||||
}, [theme]);
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
@@ -231,7 +233,7 @@ const preview: Preview = {
|
||||
parameters: {
|
||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||
a11y: {
|
||||
test: "todo",
|
||||
test: "error",
|
||||
},
|
||||
backgrounds: {
|
||||
disable: true,
|
||||
|
||||
Reference in new issue
Block a user