Skip to content

Commit

Permalink
Merge pull request #526 from imchell/spacer-story
Browse files Browse the repository at this point in the history
fix(react-spacer): spacer stories
  • Loading branch information
jrgarciadev committed Jun 9, 2022
2 parents cf55e67 + 93a5da7 commit d3c7f53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react/src/spacer/spacer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useTheme from '../use-theme';

export default {
title: 'Layout/Spacer',
component: Spacer,
component: Spacer
} as Meta;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand All @@ -17,7 +17,7 @@ const Container = ({ children, vertical }: any) => (
justifyContent: 'space-between',
width: '100%',
maxWidth: '50%',
minWidth: '50%',
minWidth: '50%'
}}
>
{children}
Expand All @@ -26,13 +26,13 @@ const Container = ({ children, vertical }: any) => (

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const SpacerContainer = ({ children }: any) => {
const theme = useTheme();
const { theme } = useTheme();
return (
<div
style={{
width: '100%',
background: theme.palette.primary,
borderRadius: '8px',
background: theme?.colors.primary.value,
borderRadius: '8px'
}}
>
{children}
Expand Down

1 comment on commit d3c7f53

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for nextui-docs ready!

✅ Preview
https://nextui-docs-4fjz9pa6n-nextui-org.vercel.app

Built with commit d3c7f53.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.