Skip to content

Commit

Permalink
chore: resolves code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdouges committed Mar 5, 2021
1 parent e9efa0e commit 70fe9c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions examples/with-compiled-css/.babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["@babel/preset-react"],
"plugins": ["@babel/plugin-syntax-jsx"]
"presets": ["next/babel"]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ClassNames } from '@compiled/react'
import { error } from '../style/colors'

export const BoxStyles = ({ children }) => (
<ClassNames>
Expand All @@ -8,7 +9,7 @@ export const BoxStyles = ({ children }) => (
display: flex;
width: 100px;
height: 100px;
border: 1px solid red;
border: 1px solid ${error};
padding: 8px;
flex-direction: column;
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { styled } from '@compiled/react'

export const Button = styled.button`
color: ${(props) => props.color};
border: 1px solid black;
background-color: transparent;
padding: 6px 8px;
border-radius: 3px;
Expand Down
6 changes: 3 additions & 3 deletions examples/with-compiled-css/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@compiled/react'
import { BoxStyles } from './class-names-box'
import { Button } from './styled-button'
import { secondary, primary } from './colors'
import { BoxStyles } from '../components/class-names-box'
import { Button } from '../components/styled-button'
import { secondary, primary } from '../style/colors'

const IndexPage = () => (
<BoxStyles>
Expand Down
File renamed without changes.

0 comments on commit 70fe9c6

Please sign in to comment.