mirror of https://github.com/buster-so/buster.git
remove loading states
This commit is contained in:
parent
07552f6071
commit
7a2ccbc9ae
|
@ -9,7 +9,7 @@ export const ShortcutPopoverContent: MentionPopoverContentCallback = ({ value })
|
|||
const shortcutName = data?.name;
|
||||
const instructions = data?.instructions;
|
||||
|
||||
if (!isFetched) return <CircleSpinnerLoader />;
|
||||
if (!isFetched) return null;
|
||||
|
||||
return (
|
||||
<div className="p-3 flex flex-col space-y-3 w-[215px]">
|
||||
|
|
|
@ -168,7 +168,7 @@ export const useShortcutsSuggestions = (
|
|||
const ShortcutSuggestionsPopoverContent = ({ shortcut }: { shortcut: Shortcut }) => {
|
||||
const { isFetched, isError } = useGetShortcut({ id: shortcut.id });
|
||||
|
||||
if (!isFetched) return <CircleSpinnerLoader />;
|
||||
if (!isFetched) return null;
|
||||
|
||||
if (isError) return <ErrorCard message="Error fetching shortcut" />;
|
||||
|
||||
|
|
Loading…
Reference in New Issue