Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn. * Updating React * Moving pure components to using function syntax (performance gains with newer react version) * Updating client dependancies. * Ignore .yarninstall * Enabling pre-lockfile because it's the entire point of using yarn. * Removing old webpack config * Moving to new prop-types * Fixing ESLint Errors * Updating jest snapshots. * Cleaning up package.json
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
63e599c43b
Коммит
2bbedd9def
@@ -17,13 +17,15 @@ import AppIcons from 'images/appIcons.png';
|
||||
|
||||
const NUM_SCREENS = 3;
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
export default class TutorialIntroScreens extends React.Component {
|
||||
static get propTypes() {
|
||||
return {
|
||||
townSquare: React.PropTypes.object,
|
||||
offTopic: React.PropTypes.object
|
||||
townSquare: PropTypes.object,
|
||||
offTopic: PropTypes.object
|
||||
};
|
||||
}
|
||||
constructor(props) {
|
||||
|
||||
@@ -15,6 +15,8 @@ import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {Overlay} from 'react-bootstrap';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import tutorialGif from 'images/tutorialTip.gif';
|
||||
@@ -199,10 +201,10 @@ TutorialTip.defaultProps = {
|
||||
};
|
||||
|
||||
TutorialTip.propTypes = {
|
||||
screens: React.PropTypes.array.isRequired,
|
||||
placement: React.PropTypes.string.isRequired,
|
||||
overlayClass: React.PropTypes.string,
|
||||
diagnosticsTag: React.PropTypes.string
|
||||
screens: PropTypes.array.isRequired,
|
||||
placement: PropTypes.string.isRequired,
|
||||
overlayClass: PropTypes.string,
|
||||
diagnosticsTag: PropTypes.string
|
||||
};
|
||||
|
||||
export function createMenuTip(toggleFunc, onBottom) {
|
||||
|
||||
Ссылка в новой задаче
Block a user