Skip to content

Commit 79c9e9d

Browse files
authored
Merge pull request JedWatson#4112 from JedWatson/bladey/fix-cx-custom-components-docs
2 parents d159051 + df81aac commit 79c9e9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/examples/StyleCompositionExample.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import { css } from 'emotion';
1+
/** @jsx jsx */
2+
import { jsx } from '@emotion/core';
33
import Select from 'react-select';
44
import { colourOptions } from '../data';
55

@@ -18,8 +18,8 @@ const Option = (props: OptionProps) => {
1818
return (
1919
<div
2020
ref={innerRef}
21+
css={getStyles('option', props)}
2122
className={cx(
22-
css(getStyles('option', props)),
2323
{
2424
option: true,
2525
'option--is-disabled': isDisabled,

0 commit comments

Comments
 (0)