mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-19 22:58:18 +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 [data, setData] = useState<DataType[]>([])
|
||||||
const [loadedIndexes, setLoadedIndexes] = useState<{ [key: number]: boolean }>({})
|
const [loadedIndexes, setLoadedIndexes] = useState<{ [key: number]: boolean }>({})
|
||||||
const listRef = useRef<List | null>(null)
|
const listRef = useRef<List | null>(null)
|
||||||
@ -133,6 +127,8 @@ const LogsTerminal = ({
|
|||||||
{({ index, style }) => {
|
{({ index, style }) => {
|
||||||
const highlight =
|
const highlight =
|
||||||
searchInput && data[index].description.split(' ').includes(searchInput)
|
searchInput && data[index].description.split(' ').includes(searchInput)
|
||||||
|
? true
|
||||||
|
: false
|
||||||
// now we only check for the existing text at the moment
|
// now we only check for the existing text at the moment
|
||||||
// I have to move this statemant in the terminalRow component
|
// I have to move this statemant in the terminalRow component
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user