From 61560b87f722b2fc4576b83101c6b2e31cf11363 Mon Sep 17 00:00:00 2001 From: "Mr.tang" <1074461480@qq.com> Date: Sat, 24 Feb 2018 00:31:41 +0800 Subject: [PATCH] Fixes #554 (#559) * update title * update titles * delete unnecessary line --- client/modules/IDE/components/About.jsx | 4 ++++ client/modules/IDE/components/AssetList.jsx | 15 +++++++++++++++ client/modules/IDE/components/Feedback.jsx | 5 ++++- .../IDE/components/KeyboardShortcutModal.jsx | 1 - client/modules/IDE/components/Preferences.jsx | 4 ++++ client/modules/IDE/components/SketchList.jsx | 11 +++++++++++ client/modules/IDE/pages/IDEView.jsx | 2 +- client/modules/User/pages/AccountView.jsx | 4 ++++ .../modules/User/pages/EmailVerificationView.jsx | 4 ++++ client/modules/User/pages/LoginView.jsx | 4 ++++ client/modules/User/pages/NewPasswordView.jsx | 4 ++++ client/modules/User/pages/ResetPasswordView.jsx | 4 ++++ client/modules/User/pages/SignupView.jsx | 4 ++++ 13 files changed, 63 insertions(+), 3 deletions(-) diff --git a/client/modules/IDE/components/About.jsx b/client/modules/IDE/components/About.jsx index 13eb343b..281e0d99 100644 --- a/client/modules/IDE/components/About.jsx +++ b/client/modules/IDE/components/About.jsx @@ -1,5 +1,6 @@ import React from 'react'; import InlineSVG from 'react-inlinesvg'; +import { Helmet } from 'react-helmet'; const squareLogoUrl = require('../../../images/p5js-square-logo.svg'); const playUrl = require('../../../images/play.svg'); @@ -8,6 +9,9 @@ const asteriskUrl = require('../../../images/p5-asterisk.svg'); function About(props) { return (
No uploaded assets.
} @@ -47,6 +59,9 @@ class AssetList extends React.Component { } AssetList.propTypes = { + user: PropTypes.shape({ + username: PropTypes.string + }).isRequired, username: PropTypes.string.isRequired, assets: PropTypes.arrayOf(PropTypes.shape({ key: PropTypes.string.isRequired, diff --git a/client/modules/IDE/components/Feedback.jsx b/client/modules/IDE/components/Feedback.jsx index a2c6d06b..a88fbe38 100644 --- a/client/modules/IDE/components/Feedback.jsx +++ b/client/modules/IDE/components/Feedback.jsx @@ -1,11 +1,14 @@ import React from 'react'; import InlineSVG from 'react-inlinesvg'; - +import { Helmet } from 'react-helmet'; import githubLogoUrl from '../../../images/github.svg'; function Feedback(props) { return (No sketches.
} diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index 66547bd7..0f0ebf83 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -200,7 +200,7 @@ class IDEView extends React.Component { return (