chore: update styles

This commit is contained in:
boojack
2022-05-03 12:15:47 +08:00
parent b1adaf9c4e
commit 72d36b964a
6 changed files with 25 additions and 114 deletions

View File

@ -4,7 +4,6 @@ import appContext from "../stores/appContext";
import useToggle from "../hooks/useToggle";
import useLoading from "../hooks/useLoading";
import utils from "../helpers/utils";
import Only from "./common/OnlyWhen";
import toastHelper from "./Toast";
import showCreateShortcutDialog from "./CreateShortcutDialog";
import "../less/shortcut-list.less";
@ -46,13 +45,6 @@ const ShortcutList: React.FC<Props> = () => {
<img src="/icons/add.svg" alt="add shortcut" />
</span>
</p>
<Only when={loadingState.isSucceed && sortedShortcuts.length === 0}>
<div className="create-shortcut-btn-container">
<span className="btn" onClick={() => showCreateShortcutDialog()}>
New shortcut
</span>
</div>
</Only>
<div className="shortcuts-container">
{sortedShortcuts.map((s) => {
return <ShortcutContainer key={s.id} shortcut={s} isActive={s.id === shortcutId} />;