Skip to content

Commit

Permalink
feat: added edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-at-airwalk committed Jun 18, 2024
1 parent c2ec27f commit fa6086b
Show file tree
Hide file tree
Showing 24 changed files with 1,696 additions and 216 deletions.
20 changes: 13 additions & 7 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
import React from "react";
import type { Preview } from "@storybook/react";
import CssBaseline from "@mui/material/CssBaseline";
import { ThemeProvider } from "@mui/material/styles";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import React from 'react';
import type { Preview } from '@storybook/react';
import CssBaseline from '@mui/material/CssBaseline';
import { ThemeProvider } from '@mui/material/styles';
import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter';
import { initialize, mswLoader } from 'msw-storybook-addon';
// import { baseTheme } from '@/styles/baseTheme';
import { baseTheme } from "../src/_styles/baseTheme";
import { baseTheme } from '../src/_styles/baseTheme';
// import theme from './theme';

initialize();
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on.*|^handle*' },
nextjs: {
appDirectory: true,
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
loaders: [mswLoader], // 👈 Add the MSW loader to all stories
decorators: [
(Story) => (
<AppRouterCacheProvider options={{ enableCssLayer: true }}>
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"prettier.jsxSingleQuote": true,
"eslint.codeActionsOnSave.rules": null,
"prettier.singleQuote": true,
"prettier.trailingComma": "es5"
"prettier.trailingComma": "es5",
"githubPullRequests.ignoredPullRequestBranches": ["main"]
}
Loading

0 comments on commit fa6086b

Please sign in to comment.