use cra pattern for importing react

This commit is contained in:
Collin M. Barrett 2019-08-07 15:55:17 -05:00
parent 4f2e2e7c36
commit 7de985ed63
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { Table } from 'antd';
import * as React from "react";
import React from 'react';
import { Description, SubscribeButton, TagCloud } from '../../shared';
import { nameof } from '../../utils';
import './AllListsTable.css';

View file

@ -1,4 +1,4 @@
import * as React from "react";
import React from 'react';
interface Props {
desription: string;

View file

@ -1,6 +1,6 @@
import { Button, Dropdown, Menu } from 'antd';
import { ButtonProps, ButtonType } from "antd/lib/button";
import * as React from "react";
import React from 'react';
import './SubscribeButton.css';
//TODO: import DropdownButtonType from antd rather than redefining if they export the type

View file

@ -1,5 +1,5 @@
import { Tag } from 'antd';
import * as React from "react";
import React from 'react';
import styles from './TagCloud.module.css';
interface TagData {