mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
remove reference to styled components css prop (#35296)
This commit is contained in:
committed by
Jessica Franco
parent
03089e3d4c
commit
44022e0f1f
Vendored
-2
@@ -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
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user