chore: remove duplicated create button

This commit is contained in:
Steven 2023-07-14 20:41:53 +08:00
parent bd9daddaef
commit 85569c032a

View File

@ -95,13 +95,9 @@ const Home: React.FC = () => {
loading loading
</div> </div>
) : filteredShortcutList.length === 0 ? ( ) : filteredShortcutList.length === 0 ? (
<div className="py-4 w-full flex flex-col justify-center items-center"> <div className="py-16 w-full flex flex-col justify-center items-center">
<Icon.PackageOpen className="w-12 h-auto text-gray-400" /> <Icon.PackageOpen className="w-16 h-auto text-gray-400" />
<p className="mt-4 mb-2">No shortcuts found.</p> <p className="mt-4">No shortcuts found.</p>
<Button size="sm" onClick={() => setShowCreateShortcutDialog(true)}>
<Icon.Plus className="w-5 h-auto mr-1" />
Create
</Button>
</div> </div>
) : ( ) : (
<ShortcutListView shortcutList={filteredShortcutList} /> <ShortcutListView shortcutList={filteredShortcutList} />