fix types

This commit is contained in:
Hristo Nedelkov 2024-01-18 19:57:30 +02:00
parent 8ff13bf8d2
commit f15a9c896b

View File

@ -33,13 +33,7 @@ const fetchMoreData = (): Promise<DataType[]> => {
})
}
const LogsTerminal = ({
windowWidth,
timestamps,
searchInput,
}: LogsTerminalProps) => {
const LogsTerminal = ({ windowWidth, timestamps, searchInput }: LogsTerminalProps) => {
const [data, setData] = useState<DataType[]>([])
const [loadedIndexes, setLoadedIndexes] = useState<{ [key: number]: boolean }>({})
const listRef = useRef<List | null>(null)
@ -133,6 +127,8 @@ const LogsTerminal = ({
{({ index, style }) => {
const highlight =
searchInput && data[index].description.split(' ').includes(searchInput)
? true
: false
// now we only check for the existing text at the moment
// I have to move this statemant in the terminalRow component
return (