瀏覽代碼

move collab stats before version

Aakansha Doshi 4 年之前
父節點
當前提交
4d0ebf5ac5
共有 1 個文件被更改,包括 15 次插入15 次删除
  1. 15 15
      src/components/Stats.tsx

+ 15 - 15
src/components/Stats.tsx

@@ -171,6 +171,21 @@ export const Stats = (props: {
                 </td>
               </tr>
             )}
+            {props.isCollaborating ? (
+              <>
+                <tr>
+                  <th colSpan={2}>{t("stats.collaboration")}</th>
+                </tr>
+                <tr>
+                  <td>{t("stats.collaborators")}</td>
+                  <td>{props.appState.collaborators.size}</td>
+                </tr>
+                <tr>
+                  <td>{t("stats.networkSpeed")}</td>
+                  <td>{props.appState.networkSpeed}</td>
+                </tr>
+              </>
+            ) : null}
             <tr>
               <th colSpan={2}>{t("stats.version")}</th>
             </tr>
@@ -193,21 +208,6 @@ export const Stats = (props: {
                 {hash}
               </td>
             </tr>
-            {props.isCollaborating ? (
-              <>
-                <tr>
-                  <th colSpan={2}>{t("stats.collaboration")}</th>
-                </tr>
-                <tr>
-                  <td>{t("stats.collaborators")}</td>
-                  <td>{props.appState.collaborators.size}</td>
-                </tr>
-                <tr>
-                  <td>{t("stats.networkSpeed")}</td>
-                  <td>{props.appState.networkSpeed}</td>
-                </tr>
-              </>
-            ) : null}
           </tbody>
         </table>
       </Island>