mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
refactor(search-messages): remove redundant "try a different search term" messages from various components and localization files
This commit is contained in:
parent
5ea0e3f8e0
commit
43ad064d3c
10 changed files with 0 additions and 15 deletions
|
|
@ -147,7 +147,6 @@ export const ActiveConnectorsTab: FC<ActiveConnectorsTabProps> = ({
|
|||
<div className="flex flex-col items-center justify-center py-20 text-center">
|
||||
<Search className="size-8 text-muted-foreground mb-3" />
|
||||
<p className="text-sm text-muted-foreground">No connectors found</p>
|
||||
<p className="text-xs text-muted-foreground/60 mt-1">Try a different search term</p>
|
||||
</div>
|
||||
) : hasSources ? (
|
||||
<div className="space-y-6">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
"use client";
|
||||
|
||||
import { Search } from "lucide-react";
|
||||
import type { FC } from "react";
|
||||
import { useIsSelfHosted } from "@/components/providers/runtime-config";
|
||||
import { EnumConnectorName } from "@/contracts/enums/connector";
|
||||
|
|
@ -252,9 +251,7 @@ export const AllConnectorsTab: FC<AllConnectorsTabProps> = ({
|
|||
if (!hasAnyResults && searchQuery) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center py-20 text-center">
|
||||
<Search className="size-8 text-muted-foreground mb-3" />
|
||||
<p className="text-sm text-muted-foreground">No connectors found</p>
|
||||
<p className="text-xs text-muted-foreground/60 mt-1">Try a different search term</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -324,7 +324,6 @@ export function FolderTreeView({
|
|||
<div className="flex flex-1 flex-col items-center justify-center gap-3 px-4 py-12 text-muted-foreground">
|
||||
<Search className="h-10 w-10" />
|
||||
<p className="text-sm text-muted-foreground">No matching documents</p>
|
||||
<p className="text-xs text-muted-foreground/70 mt-1">Try a different search term</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -487,13 +487,9 @@ function AllChatsContent({ workspaceId, className }: AllChatsContentProps) {
|
|||
</div>
|
||||
) : isSearchMode ? (
|
||||
<div className="text-center py-8">
|
||||
<Search className="mx-auto mb-2.5 h-10 w-10 text-muted-foreground" />
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{t("no_chats_found") || "No chats found"}
|
||||
</p>
|
||||
<p className="mt-1 text-[11px] text-muted-foreground/70">
|
||||
{t("try_different_search") || "Try a different search term"}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-center py-8">
|
||||
|
|
|
|||
|
|
@ -664,7 +664,6 @@
|
|||
"chat_deleted": "Chat deleted successfully",
|
||||
"error_deleting_chat": "Failed to delete chat",
|
||||
"delete": "Delete",
|
||||
"try_different_search": "Try a different search term",
|
||||
"updated": "Updated",
|
||||
"more_options": "More options",
|
||||
"clear_search": "Clear search",
|
||||
|
|
|
|||
|
|
@ -664,7 +664,6 @@
|
|||
"chat_deleted": "Chat eliminado correctamente",
|
||||
"error_deleting_chat": "Error al eliminar el chat",
|
||||
"delete": "Eliminar",
|
||||
"try_different_search": "Intenta con un término de búsqueda diferente",
|
||||
"updated": "Actualizado",
|
||||
"more_options": "Más opciones",
|
||||
"clear_search": "Limpiar búsqueda",
|
||||
|
|
|
|||
|
|
@ -664,7 +664,6 @@
|
|||
"chat_deleted": "चैट सफलतापूर्वक हटाया गया",
|
||||
"error_deleting_chat": "चैट हटाने में विफल",
|
||||
"delete": "हटाएं",
|
||||
"try_different_search": "कोई अलग खोज शब्द आज़माएं",
|
||||
"updated": "अपडेट किया गया",
|
||||
"more_options": "और विकल्प",
|
||||
"clear_search": "खोज साफ करें",
|
||||
|
|
|
|||
|
|
@ -664,7 +664,6 @@
|
|||
"chat_deleted": "채팅이 성공적으로 삭제되었습니다",
|
||||
"error_deleting_chat": "채팅 삭제에 실패했습니다",
|
||||
"delete": "삭제",
|
||||
"try_different_search": "다른 검색어를 시도해보세요",
|
||||
"updated": "업데이트됨",
|
||||
"more_options": "추가 옵션",
|
||||
"clear_search": "검색 지우기",
|
||||
|
|
|
|||
|
|
@ -664,7 +664,6 @@
|
|||
"chat_deleted": "Chat excluído com sucesso",
|
||||
"error_deleting_chat": "Falha ao excluir chat",
|
||||
"delete": "Excluir",
|
||||
"try_different_search": "Tente um termo de pesquisa diferente",
|
||||
"updated": "Atualizado",
|
||||
"more_options": "Mais opções",
|
||||
"clear_search": "Limpar pesquisa",
|
||||
|
|
|
|||
|
|
@ -663,7 +663,6 @@
|
|||
"chat_deleted": "对话删除成功",
|
||||
"error_deleting_chat": "删除对话失败",
|
||||
"delete": "删除",
|
||||
"try_different_search": "尝试其他搜索词",
|
||||
"updated": "更新时间",
|
||||
"more_options": "更多选项",
|
||||
"clear_search": "清除搜索",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue