Преглед изворни кода

:syringe: CIのエラーの指摘箇所リファクタ

Kazuya_Nagase пре 7 година
родитељ
комит
c1c7da49ad
2 измењених фајлова са 10 додато и 19 уклоњено
  1. 7 17
      src/client/js/components/StaffCredit/StaffCredit.jsx
  2. 3 2
      src/server/views/layout/layout.html

+ 7 - 17
src/client/js/components/StaffCredit/StaffCredit.jsx

@@ -1,14 +1,4 @@
 import React from 'react';
 import React from 'react';
-import PropTypes from 'prop-types';
-import { withTranslation } from 'react-i18next';
-
-import FormGroup from 'react-bootstrap/es/FormGroup';
-import FormControl from 'react-bootstrap/es/FormControl';
-import ListGroup from 'react-bootstrap/es/ListGroup';
-import ListGroupItem from 'react-bootstrap/es/ListGroupItem';
-import Modal from 'react-bootstrap/es/Modal';
-
-const SPECIFIED_GROUP_VALUE = 'specifiedGroup';
 
 
 /**
 /**
  * Page staff credit component
  * Page staff credit component
@@ -19,13 +9,13 @@ const SPECIFIED_GROUP_VALUE = 'specifiedGroup';
  */
  */
 class StaffCredit extends React.Component {
 class StaffCredit extends React.Component {
 
 
-  constructor() {
-
+  render() {
+    return (
+      <p>スタッフロール</p>
+    );
   }
   }
 
 
-    render() {
-        return (
-            <h1>スタッフロール</h1>
-        );
-    }
 }
 }
+
+StaffCredit.propTypes = {
+};

+ 3 - 2
src/server/views/layout/layout.html

@@ -119,8 +119,6 @@
   data-userlang="{% if user %}{{ user.lang }}{% endif %}"
   data-userlang="{% if user %}{{ user.lang }}{% endif %}"
  >
  >
 
 
- <div id="staff-credit"><div>
-
 <div id="wrapper">
 <div id="wrapper">
   <!-- Navigation -->
   <!-- Navigation -->
   {% block layout_head_nav %}
   {% block layout_head_nav %}
@@ -230,6 +228,9 @@
 
 
 </div><!-- /#wrapper -->
 </div><!-- /#wrapper -->
 
 
+<!-- /#staff-credit -->
+<div id="staff-credit"><div>
+
 {% include '../modal/shortcuts.html' %}
 {% include '../modal/shortcuts.html' %}
 
 
 {% block body_end %}
 {% block body_end %}