From 34abee85358af084bb2e1570484318bd5a8991e2 Mon Sep 17 00:00:00 2001 From: lixu Date: Fri, 12 Jun 2020 23:49:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=82=B9=E5=87=BB=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E4=BC=9A=E8=A7=A6=E5=8F=91Collapse=20toggle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 28 +++++++++++++++++++++------- src/constant/index.js | 1 + src/index.css | 4 ---- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/App.js b/src/App.js index 522c4e7..2f6a132 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useState, Fragment } from "react"; import { Tabs, Tag, Button, Table, Empty, message, Collapse } from "antd"; import marked from "marked"; import hljs from "highlight.js"; @@ -6,7 +6,7 @@ import "highlight.js/styles/github.css"; import { copy } from "./utils"; import db from "./db/db"; -import { LEETCODE_CN_URL, LEETCODE_URL } from "./constant/index"; +import { LEETCODE_CN_URL, LEETCODE_URL, ISSUES_URL } from "./constant/index"; import "antd/dist/antd.css"; import "./App.css"; @@ -118,7 +118,13 @@ function App() { {problems[problemId].keyPoints.map(({ id, link, text, color }) => ( - + ))} @@ -147,11 +153,12 @@ function App() { @@ -187,7 +194,14 @@ function App() { - {problems[problemId].company.map((c) => c.name).join(",")} + {problems[problemId].company.map((c) => c.name).join(",") || ( + + 暂无公司资料, + + 点击反馈 + + + )}