Skip to content

Commit

Permalink
fix: Fixed background for jogging panel
Browse files Browse the repository at this point in the history
  • Loading branch information
vgerber committed Sep 23, 2024
1 parent ecb6e18 commit 87c2fa3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions stories/JoggingPanel.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
import { Box, useTheme } from "@mui/material"
import type { Meta, StoryObj } from "@storybook/react"
import { JoggingPanel } from "../src/index"
import { JoggingPanel, type JoggingPanelProps } from "../src/index"

const JoggingPanelWrapper = (props: JoggingPanelProps) => {
const theme = useTheme()
return (
<Box
sx={{
backgroundColor: theme.palette.backgroundPaperElevation?.[5],
maxWidth: "min-content",
}}
>
<JoggingPanel {...props} />
</Box>
)
}

const meta: Meta<typeof JoggingPanel> = {
title: "Jogging/JoggingPanel",
tags: ["!dev"],
component: JoggingPanel,
component: JoggingPanelWrapper,
}
export default meta

Expand Down

0 comments on commit 87c2fa3

Please sign in to comment.