Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Feb 15, 2024
1 parent 872ab8e commit 07ab443
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/next-yak/runtime/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ const yakStyled = <
// ^ must be have acces to theme
const theme = attrs || getRuntimeStyles.length ? useTheme() : {};
/** The combined props are passed into the styled`` literal functions */
const combinedProps: Substitute<TCSSProps & T, TAttrsIn> = processAttrs(
{ theme, ...props } as Substitute<TCSSProps & T, TAttrsIn>,
);
const combinedProps: Substitute<TCSSProps & T, TAttrsIn> = processAttrs({
theme,
...props,
} as Substitute<TCSSProps & T, TAttrsIn>);
// execute all functions inside the style literal
// e.g. styled.button`color: ${props => props.color};`
const runtimeStyles = getRuntimeStyles(combinedProps as any);
Expand Down

0 comments on commit 07ab443

Please sign in to comment.