changement de vocabulaire

This commit is contained in:
2025-07-19 11:16:05 +02:00
parent 695054b2bb
commit 0b0d71768b

View File

@ -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 (
<>
<div
<div
style={{
position: 'fixed',
top: 0,
@ -121,7 +121,7 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) {
value={input}
onChange={(e) => 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 (
<div
key={space}
@ -166,4 +166,4 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) {
</div>
</>
)
}
}