Skip to content

Commit 58d12d8

Browse files
emmatownNoviny
authored andcommitted
Fix a usage of the css prop that wasn't updated to emotion 10's syntax (#86)
* Fix a usage of the css prop that wasn't updated to emotion 10's syntax * A thing
1 parent 41c5c25 commit 58d12d8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "releases": [{ "name": "pretty-proptypes", "type": "patch" }], "dependents": [] }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a usage of the css prop that wasn't updated to emotion 10's syntax

packages/pretty-proptypes/src/PrettyConvert/converters.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
// TODO: Remove this eslint-disable
44
/* eslint-disable */
5-
import React, { type Node } from 'react';
5+
/** @jsx jsx */
6+
import { jsx, css } from '@emotion/core';
7+
import { type Node } from 'react';
68
import convert, { resolveFromGeneric } from 'kind2string';
79
import type { Components } from '../components';
810
import AddBrackets from './AddBrackets';
@@ -34,7 +36,7 @@ function printComplexType(type, components, depth) {
3436

3537
export const TypeMinWidth = (props: { children: Node }) => (
3638
<span
37-
css={`
39+
css={css`
3840
display: inline-block;
3941
min-width: 60px;
4042
`}
@@ -44,7 +46,7 @@ export const TypeMinWidth = (props: { children: Node }) => (
4446

4547
const Arrow = () => (
4648
<span
47-
css={`
49+
css={css`
4850
color: ${colors.G500};
4951
`}
5052
>

0 commit comments

Comments
 (0)