Skip to content

Commit 68c6a06

Browse files
committed
bump dev dependencies; rebuild storybook files
1 parent 2840568 commit 68c6a06

File tree

73 files changed

+222
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+222
-216
lines changed

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
test: /\.(ts|tsx)$/,
3131
loader: require.resolve('babel-loader'),
3232
options: {
33-
presets: [['react-app', { flow: false, typescript: true }]],
33+
presets: [['react-app', { flow: false, typescript: true, runtime: 'automatic' }]],
3434
},
3535
});
3636

.storybook/preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import ReactDOM from 'react-dom';
32
import { GlobalStyle } from './global-style';
43

__stories__/helpers/components/Checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import { memo } from 'react';
22
import { hexToRgba } from '../utils';
33
import styled from 'styled-components';
44

@@ -107,7 +107,7 @@ const CheckIcon = styled.i`
107107
}
108108
`;
109109

110-
const Checkbox = React.memo<CheckboxProps>(({
110+
const Checkbox = memo<CheckboxProps>(({
111111
label,
112112
onCheck,
113113
checked,

__stories__/helpers/components/CodeMarkup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import { memo } from 'react';
22
import styled from 'styled-components';
33
import { dark } from 'react-syntax-highlighter/dist/esm/styles/prism';
44
import { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter';
@@ -110,7 +110,7 @@ const PreContainer = styled.div`
110110
}
111111
`;
112112

113-
const CodeMarkup = React.memo<CodeMarkupProps>(({
113+
const CodeMarkup = memo<CodeMarkupProps>(({
114114
data,
115115
header,
116116
language,

__stories__/helpers/components/OptionsCountButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import { FC } from 'react';
22
import { Button } from '../styled';
33
import styled from 'styled-components';
44
import { numberWithCommas } from '../utils';
@@ -33,7 +33,7 @@ const StyledButton = styled(Button)<StyledButtonProps>`
3333
}
3434
`;
3535

36-
const OptionsCountButton: React.FC<OptionsCountButtonProps> = ({
36+
const OptionsCountButton: FC<OptionsCountButtonProps> = ({
3737
count,
3838
optionsCount,
3939
setOptionsCount

__stories__/helpers/components/PackageLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import { memo, FC } from 'react';
22
import styled from 'styled-components';
33

44
type PackageLinkProps = Readonly<{
@@ -27,7 +27,7 @@ const Link = styled.a`
2727
}
2828
`;
2929

30-
const PackageLink: React.FC<PackageLinkProps> = React.memo(({ name, href }) => (
30+
const PackageLink: FC<PackageLinkProps> = memo(({ name, href }) => (
3131
<Link
3232
href={href}
3333
target='_blank'

__stories__/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useMemo, useRef, useState, useEffect, useCallback, Fragment, ReactNode } from 'react';
1+
import { useMemo, useRef, useState, useEffect, useCallback, Fragment, ReactNode } from 'react';
22
import { toast } from 'react-toastify';
33
import { SelectedOption } from '../src/types';
44
import { useUpdateEffect } from '../src/hooks';

__tests__/AriaLiveRegion.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { FocusedOption } from '../src';
32
import { RfsTheme } from '../src/theme';
43
import { ThemeProvider } from 'styled-components';

__tests__/AutosizeInput.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { RfsTheme } from '../src/theme';
32
import { AutosizeInputProps } from '../src/types';
43
import { ThemeProvider } from 'styled-components';

__tests__/IndicatorIcons.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactNode } from 'react';
1+
import { ReactNode } from 'react';
22
import { RfsTheme } from '../src/theme';
33
import { ThemeProvider } from 'styled-components';
44
import { IndicatorIcons } from '../src/components';

0 commit comments

Comments
 (0)