Skip to content

Commit

Permalink
fixup! Feat(web-react): Introduce Box component #DS-1595
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Jan 2, 2025
1 parent 797fc68 commit bfe187d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ describe('useBoxStyleProps', () => {
const props: SpiritBoxProps = {
borderRadius: '200',
borderWidth: '100',
borderStyle: 'solid',
};
const { result } = renderHook(() => useBoxStyleProps(props));

Expand All @@ -114,6 +115,7 @@ describe('useBoxStyleProps', () => {
const props: SpiritBoxProps = {
borderColor: 'basic',
borderWidth: '100',
borderStyle: 'solid',
};
const { result } = renderHook(() => useBoxStyleProps(props));

Expand Down
5 changes: 3 additions & 2 deletions packages/web-react/src/components/Box/stories/Box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { BackgroundColors, BorderColors, BorderRadii, BorderStyles, BorderWidths } from '../../../constants';
import Box from '../Box';
import ReadMe from '../README.md';
import { BorderColors, BorderRadii, BorderStyles, BorderWidths } from '../../../constants';

const meta: Meta<typeof Box> = {
title: 'Components/Box',
Expand Down Expand Up @@ -115,7 +115,8 @@ const meta: Meta<typeof Box> = {
},
},
backgroundColor: {
control: 'text',
control: 'select',
options: Object.values(BackgroundColors),
table: {
type: {
summary: 'BackgroundColorsDictionaryType',
Expand Down

0 comments on commit bfe187d

Please sign in to comment.