Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 20, 2019
1 parent 297f11f commit 963a849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/scripts/formattedTSDemos.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ async function transpileFile(tsxPath, program, ignoreCache = false) {

const source = await fse.readFile(tsxPath, 'utf8');

//npm
const { code } = await babel.transformAsync(source, { ...babelConfig, filename: tsxPath });
const { code } = await babel.transformAsync(source, { ...babelConfig, filename: tsxPath });

if (/import \w* from 'prop-types'/.test(code)) {
throw new Error('TypeScript demo contains prop-types, please remove them');
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/Virtualize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import { useTheme, makeStyles, Theme } from '@material-ui/core/styles';
import { useTheme, makeStyles } from '@material-ui/core/styles';
import { FixedSizeList, ListChildComponentProps } from 'react-window';

function renderRow(props: ListChildComponentProps) {
Expand Down

0 comments on commit 963a849

Please sign in to comment.