Add an alert about stopping updating in-game data

This commit is contained in:
Sakura Knoll
2023-09-17 21:14:58 +09:00 Unverified
parent 5b25c616ad
commit cae35ab79e
+64 -51
View File
@@ -40,65 +40,78 @@ const Honkai3rdLayout: React.FC = ({ children }) => {
<Flex
sx={{
height: '100%',
overflow: 'hidden'
overflow: 'hidden',
flexDirection: 'column'
}}
>
<Box
sx={{
width: ['100%', 240],
borderRightWidth: 1,
borderRightStyle: 'solid',
borderRightColor: 'border',
overflowY: 'auto',
overflowX: 'hidden',
display: [hiddenMobileNav ? 'none' : 'block', 'block']
}}
>
<Honkai3rdNavigator close={close} />
<Box sx={{ flexShrink: 0, px: 3 }}>
<h3>We have decided to stop updating in-game data since v6.9</h3>
<p>
This is because we cannot extract in-game data anymore. If you can help us to extract the data, please join
our discord channel and ping @s4kuraknoll.{' '}
<a href="https://discord.gg/UnrM9T9PRs" target="_blank" rel="noreferrer">
https://discord.gg/UnrM9T9PRs
</a>
</p>
</Box>
<Box
sx={{
flex: 1,
overflowY: 'auto',
overflowX: 'hidden',
scrollBehavior: 'smooth'
}}
onScroll={handleScroll}
ref={contentBoxRef}
>
<IconButton
<Flex sx={{ flexGrow: 1 }}>
<Box
sx={{
width: 50,
height: 50,
position: 'absolute',
bottom: 1,
right: 1,
zIndex: 1000,
pointerEvents: scrolled ? 'auto' : 'none',
opacity: scrolled ? 1 : 0,
transition: 'opacity 200ms ease-in-out',
backgroundColor: 'transparent'
}}
onClick={scrollToTop}
>
<Icon path={mdiArrowUp} size={1} />
</IconButton>
<Flex
sx={{
position: 'sticky',
display: ['block', 'none'],
top: 0,
height: 50,
bg: 'transparent'
width: ['100%', 240],
borderRightWidth: 1,
borderRightStyle: 'solid',
borderRightColor: 'border',
overflowY: 'auto',
overflowX: 'hidden',
display: [hiddenMobileNav ? 'none' : 'block', 'block']
}}
>
<IconButton sx={{ width: 50, height: 50 }} onClick={() => setHiddenMobileNav(false)}>
<Icon path={mdiMenu} size={1} />
<Honkai3rdNavigator close={close} />
</Box>
<Box
sx={{
flex: 1,
overflowY: 'auto',
overflowX: 'hidden',
scrollBehavior: 'smooth'
}}
onScroll={handleScroll}
ref={contentBoxRef}
>
<IconButton
sx={{
width: 50,
height: 50,
position: 'absolute',
bottom: 1,
right: 1,
zIndex: 1000,
pointerEvents: scrolled ? 'auto' : 'none',
opacity: scrolled ? 1 : 0,
transition: 'opacity 200ms ease-in-out',
backgroundColor: 'transparent'
}}
onClick={scrollToTop}
>
<Icon path={mdiArrowUp} size={1} />
</IconButton>
</Flex>
<Flex
sx={{
position: 'sticky',
display: ['block', 'none'],
top: 0,
height: 50,
bg: 'transparent'
}}
>
<IconButton sx={{ width: 50, height: 50 }} onClick={() => setHiddenMobileNav(false)}>
<Icon path={mdiMenu} size={1} />
</IconButton>
</Flex>
{children}
</Box>
{children}
</Box>
</Flex>
</Flex>
)
}