Skip to content

Commit

Permalink
fixup! Feat(web-react): Additional parameter for styleProps and Box r…
Browse files Browse the repository at this point in the history
…efactor
  • Loading branch information
curdaj committed Jan 2, 2025
1 parent 1af5ba3 commit fa0e023
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/web-react/src/components/Box/useBoxStyleProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ export interface UseBoxStyleProps<T> {
export const useBoxStyleProps = (
props: Partial<SpiritBoxProps<ElementType>>,
): UseBoxStyleProps<Partial<SpiritBoxProps<ElementType>>> => {
const {
backgroundColor,
borderColor,
borderRadius,
borderStyle,
borderWidth,
...restProps
} = props || {};
const { backgroundColor, borderColor, borderRadius, borderStyle, borderWidth, ...restProps } = props || {};
const boxBackgroundColor = backgroundColor ? `bg-${backgroundColor}` : '';
let boxBorderColor = borderColor ? borderColor.replace('', 'border-') : '';
let boxBorderRadius = '';
Expand Down

0 comments on commit fa0e023

Please sign in to comment.