From 0b0d71768b7a851488bfacb23ac31b41a5552dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Sat, 19 Jul 2025 11:16:05 +0200 Subject: [PATCH] changement de vocabulaire --- src/components/NavigationConsole.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/NavigationConsole.tsx b/src/components/NavigationConsole.tsx index 629b506..33ca9f4 100644 --- a/src/components/NavigationConsole.tsx +++ b/src/components/NavigationConsole.tsx @@ -34,14 +34,14 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) { if (input.trim() === '') { setFilteredSpaces(existingSpaces.slice(0, 8)) } else { - const filtered = existingSpaces.filter(space => + const filtered = existingSpaces.filter(space => space.toLowerCase().includes(input.toLowerCase()) ).slice(0, 8) - + if (filtered.length === 0 || !filtered.includes(input)) { filtered.unshift(input) } - + setFilteredSpaces(filtered) } setSelectedIndex(0) @@ -88,7 +88,7 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) { return ( <> -
setInput(e.target.value)} onKeyDown={handleKeyDown} - placeholder="Nom de l'espace ou URL..." + placeholder="Name a space" style={{ width: '100%', background: 'transparent', @@ -139,7 +139,7 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) { const isExisting = existingSpaces.includes(space) const isSelected = index === selectedIndex const isUrl = space.startsWith('http://') || space.startsWith('https://') - + return (
) -} \ No newline at end of file +}