Update LogsTerminal.tsx

This commit is contained in:
Hristo Nedelkov 2023-11-08 02:24:28 +02:00
parent da944c8e74
commit 5e7e18b8e9

View File

@ -1,3 +1,4 @@
import { Text } from '@status-im/components'
import { useEffect, useState } from 'react'
import { FixedSizeList as List } from 'react-window'
import InfiniteLoader from 'react-window-infinite-loader'
@ -16,7 +17,7 @@ interface RowProps {
const Row: React.FC<RowProps> = ({ data, index }) => {
if (!data) {
return <div>Loading...</div>
return <Text size={19} >Loading...</Text>
}
const { option, description } = data
@ -26,7 +27,6 @@ const Row: React.FC<RowProps> = ({ data, index }) => {
style={{
alignContent: 'flex-start',
justifyContent: 'center',
justifyContent: 'center',
alignItems: 'center',
padding: '0 12px',
marginRight: '20px',
@ -716,9 +716,9 @@ const LogsTerminal: React.FC = () => {
style={{ borderRadius: '25px', overflow: 'hidden', border: '1px solid #E7EAEE' }}
>
{({ index, style }) => (
<div style={style}>
<Stack style={style}>
<Row data={data[index]} index={index} />
</div>
</Stack>
)}
</List>
)}