Skip to content

Commit c5836ff

Browse files
committed
Fix import paths
1 parent 13344ff commit c5836ff

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.1.0
2+
3+
Fix import paths
4+
15
## v1.0.3
26

37
Fix demo gif snippet prefix.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ The following snippets are provided by this package. If you have ideas of other
1616

1717
| Prefix | Method | Prefix meaning |
1818
| ------- | ----------------------------------------- | --------------------------- |
19-
| `ies→` | `import styled from 'react-emotion'` | _Import Emotion styled_ |
20-
| `iec→` | `import { css } from 'react-emotion'` | _Import Emotion css_ |
21-
| `iecx→` | `import { css, cx } from 'react-emotion'` | _Import Emotion css and cx_ |
19+
| `ies→` | `import styled from '@emotion/core'` | _Import Emotion styled_ |
20+
| `iec→` | `import { css } from '@emotion/core'` | _Import Emotion css_ |
21+
| `iecx→` | `import { css, cx } from '@emotion/core'` | _Import Emotion css and cx_ |
22+
| `iej→` | `import { jsx } from '@emotion/core'` | _Import Emotion jsx_ |
2223

2324
### Other snippets
2425

snippets/snippets.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
{
22
"Import emotion styled": {
33
"prefix": "ies",
4-
"body": ["import styled from 'react-emotion'"],
4+
"body": ["import styled from '@emotion/styled'"],
55
"description": "Import Emotion styled"
66
},
7+
"Import emotion jsx": {
8+
"prefix": "iej",
9+
"body": ["import { jsx } from '@emotion/core'"],
10+
"description": "Import Emotion jsx"
11+
},
712
"Import emotion css": {
813
"prefix": "iec",
9-
"body": ["import { css } from 'react-emotion'"],
14+
"body": ["import { css, jsx } from '@emotion/core'"],
1015
"description": "Import Emotion css"
1116
},
1217
"Import Emotion css and cx": {
1318
"prefix": "iecx",
14-
"body": ["import { css, cx } from 'react-emotion'"],
19+
"body": ["import { css, cx, jsx } from '@emotion/core'"],
1520
"description": "Import Emotion css"
1621
},
1722
"Create Emotion style": {

0 commit comments

Comments
 (0)