Skip to content

Commit

Permalink
Fix md diff format
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Aug 22, 2024
1 parent 3523e4a commit da5a06c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ A big thanks to the 12 contributors who made this release possible. Here are som
```diff
-const StyledBox = styled(Box)`
+const StyledDiv = styled('div')`
color: white;
`;
color: white;
`;
```

This yields the same end result.
If this doesn't work for you, you can also cast the `styled` returned value to `typeof Box`:

```diff
const StyledBox = styled(Box)`
color: white;
const StyledBox = styled(Box)`
color: white;
-`;
+` as typeof Box;
```
Expand Down

0 comments on commit da5a06c

Please sign in to comment.