From 9d957af422493e047933fce59ebc1a56d4aa3389 Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Thu, 18 Jun 2020 14:35:36 +0800
Subject: [PATCH] user
---
src/App.js | 2 +-
src/forge/Index.js | 4 +++-
src/forge/users/Index.jsx | 10 +++++-----
src/forge/users/Infos.js | 2 --
src/modules/user/usersInfo/InfosIndex.js | 3 ---
5 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/src/App.js b/src/App.js
index 717b5276..e9995dea 100644
--- a/src/App.js
+++ b/src/App.js
@@ -245,7 +245,7 @@ class App extends Component {
(props) => {
return ()
}
- }>
+ }>
(
diff --git a/src/forge/Index.js b/src/forge/Index.js
index 9b59eedd..376da109 100644
--- a/src/forge/Index.js
+++ b/src/forge/Index.js
@@ -33,7 +33,9 @@ const Infos = Loadable({
});
class Index extends Component {
+
render() {
+ console.log("1",this.props);
return (
@@ -61,7 +63,7 @@ class Index extends Component {
path="/"
render={(props) => (
this.props.current_user && this.props.current_user.login ?
-
+
:
)}
diff --git a/src/forge/users/Index.jsx b/src/forge/users/Index.jsx
index 6fd3d6f5..561cf3c9 100644
--- a/src/forge/users/Index.jsx
+++ b/src/forge/users/Index.jsx
@@ -13,12 +13,12 @@ const Infos = Loadable({
export default withRouter(
(CNotificationHOC()(SnackbarHOC()(TPMIndexHOC((props)=>{
return(
-
-
+ {
- return ;
- }}
+ render={() => (
+
+ )}
>
)
diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js
index bfe4efe8..984980db 100644
--- a/src/forge/users/Infos.js
+++ b/src/forge/users/Infos.js
@@ -6,7 +6,6 @@ import FocusButton from "../UsersList/focus_button";
import axios from "axios";
import { getImageUrl } from "educoder";
import { Route, Switch } from "react-router-dom";
-import { withRouter } from "react-router";
import "./new_user.css";
import "../css/index.css";
@@ -14,7 +13,6 @@ import './Index.scss';
import Loadable from "react-loadable";
import Loading from "../../Loading";
-import { ImageLayerOfCommentHOC } from "../../modules/page/layers/ImageLayerOfCommentHOC";
const InfosUser = Loadable({
loader: () => import("./InfosUser"),
diff --git a/src/modules/user/usersInfo/InfosIndex.js b/src/modules/user/usersInfo/InfosIndex.js
index e132220f..23adb0b7 100644
--- a/src/modules/user/usersInfo/InfosIndex.js
+++ b/src/modules/user/usersInfo/InfosIndex.js
@@ -24,10 +24,7 @@ const VideoProtocol = Loadable({
loader: () => import('./video/VideoProtocol'),
loading: Loading,
})
-
-const $ = window.$;
class InfosIndex extends Component {
-
render() {
return (