Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Aug 5, 2024
1 parent b54c212 commit c3b1774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pigment-css-react/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ styled.div(({ theme }) => ({
}));

sx({ color: 'red' });
sx(({ theme }) => ({
sx((theme) => ({
color: theme.palette.primary.main,
}));
sx([
{ color: 'red' },
({ theme }) => ({
(theme) => ({
color: theme.palette.primary.main,
}),
]);
const foo = true;
sx([
true && { color: 'red' },
foo
? ({ theme }) => ({
? (theme) => ({
color: theme.palette.primary.main,
})
: {
Expand Down

0 comments on commit c3b1774

Please sign in to comment.