changement de vocabulaire
This commit is contained in:
@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user