mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-16 21:36:39 +00:00
fix types
This commit is contained in:
parent
8ff13bf8d2
commit
f15a9c896b
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user