mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-09 11:11:59 +00:00
Update LogsTerminal.tsx
This commit is contained in:
parent
da944c8e74
commit
5e7e18b8e9
@ -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>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user