diff --git a/web/src/components/ShortcutView.tsx b/web/src/components/ShortcutView.tsx index 252c36f..08f682a 100644 --- a/web/src/components/ShortcutView.tsx +++ b/web/src/components/ShortcutView.tsx @@ -29,7 +29,7 @@ const ShortcutView = (props: Props) => { const handleDeleteShortcutButtonClick = (shortcut: Shortcut) => { showCommonDialog({ title: "Delete Shortcut", - content: `Are you sure to delete shortcut \`${shortcut.name}\` in this workspace?`, + content: `Are you sure to delete shortcut \`${shortcut.name}\`? You can not undo this action.`, style: "danger", onConfirm: async () => { await shortcutService.deleteShortcutById(shortcut.id); diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx index 87e2432..3b0534b 100644 --- a/web/src/pages/Home.tsx +++ b/web/src/pages/Home.tsx @@ -1,3 +1,4 @@ +import { Button } from "@mui/joy"; import { useEffect, useState } from "react"; import { shortcutService } from "../services"; import { useAppSelector } from "../stores"; @@ -59,10 +60,18 @@ const Home: React.FC = () => { {loadingState.isLoading ? ( -
+
loading
+ ) : shortcutList.length === 0 ? ( +
+ +

No shortcuts found.

+ +
) : ( )}