remove reference to styled components css prop (#35296)

This commit is contained in:
Erin Noe-Payne
2019-05-10 14:59:25 +09:00
committed by Jessica Franco
parent 03089e3d4c
commit 44022e0f1f
2 changed files with 0 additions and 23 deletions
-2
View File
@@ -10,7 +10,6 @@
// TypeScript Version: 2.9
import * as React from "react";
import { Interpolation } from "styled-components";
import * as StyledSystem from "styled-system";
export {};
@@ -19,7 +18,6 @@ type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
export interface BaseProps extends React.Props<any> {
as?: React.ElementType;
css?: Interpolation<any>;
}
interface BoxKnownProps
-21
View File
@@ -1,6 +1,5 @@
import * as React from "react";
import { Flex, Box } from "@rebass/grid";
import { css } from "styled-components";
import * as Emotion from "@rebass/grid/emotion";
const test = () => (
@@ -118,28 +117,8 @@ const Layout = () => (
</Flex>
);
const cssTest = (
<Flex css="background: transparent;">
<Box
css={css`
${{ color: "inherit" }}
`}
/>
</Flex>
);
const EmotionLayout = () => (
<Emotion.Flex m={4}>
<Emotion.Box px={3} py={2} />
</Emotion.Flex>
);
const emotionCssTest = (
<Emotion.Flex css="background: transparent;">
<Emotion.Box
css={css`
${{ color: "inherit" }}
`}
/>
</Emotion.Flex>
);