mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-09 19:15:38 +00:00
Update LogsPage.tsx
This commit is contained in:
parent
6b96577468
commit
01ab375a1c
@ -6,8 +6,21 @@ import RightSidebar from '../../components/General/RightSideBar/RightSidebar'
|
||||
import LogsTerminal from './LogsTerminal'
|
||||
import LogsSumCard from './LogsSumCard'
|
||||
import SupportCard from './SupportCard'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
const LogsPage = () => {
|
||||
const [windowWidth, setWindowWidth] = useState(window.innerWidth)
|
||||
|
||||
useEffect(() => {
|
||||
const handleResize = () => {
|
||||
setWindowWidth(+window.innerWidth)
|
||||
}
|
||||
|
||||
window.addEventListener('resize', handleResize)
|
||||
return () => {
|
||||
window.removeEventListener('resize', handleResize)
|
||||
}
|
||||
}, [])
|
||||
return (
|
||||
<XStack style={{ height: '100vh' }}>
|
||||
<LeftSidebar />
|
||||
@ -26,7 +39,7 @@ const LogsPage = () => {
|
||||
>
|
||||
<TitleLogo />
|
||||
<Stack style={{ width: '100%', alignItems: 'center' }}>
|
||||
<LogsTerminal />
|
||||
<LogsTerminal windowWidth={windowWidth}/>
|
||||
<XStack space="$4">
|
||||
<LogsSumCard type={'Critical'} count={16} countActive={2} countInactive={3} />
|
||||
<LogsSumCard type={'Warning'} count={9} countActive={2} countInactive={7} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user