fix(directory): fixed an issue where fast navigation did not reset on changelogs page

This commit is contained in:
Haoyu Xu
2023-06-24 08:35:17 -04:00
parent 1fc288f903
commit 0ab19ad130
3 changed files with 15 additions and 2 deletions

View File

@@ -1,4 +1,8 @@
showcase:
2023/06/24:
- Updated charwords
- Subtitle will not show by default
- Added option to disable Start animation
2023/05/04:
- Added Start animation for supported operator
2023/03/15:
@@ -42,6 +46,13 @@ showcase:
2021/05/26:
- First commit
directory:
2023/06/24:
- Fixed _assets rebuilding issue
- Added fast navigation menu
- Added scroll to top button
- Added a custom scrollbar
- Added a popup for dropdown menus
- Added a search box in fast navigation
2023/05/05:
- Header title will only contain operator name, instead of full name (skin name + operator name)
2023/05/04:

View File

@@ -1 +1 @@
1.2.17
1.2.18

View File

@@ -17,6 +17,7 @@ export default function Changelogs() {
setTabs,
currentTab,
setHeaderIcon,
setFastNavigation,
} = useHeader()
const {
setExtraArea,
@@ -26,11 +27,12 @@ export default function Changelogs() {
useEffect(() => {
setTitle('changelogs')
setExtraArea([])
setFastNavigation([])
setHeaderIcon(null)
fetch('/_assets/changelogs.json').then(res => res.json()).then(data => {
setChangelogs(data)
})
}, [setExtraArea, setHeaderIcon, setTitle])
}, [setExtraArea, setFastNavigation, setHeaderIcon, setTitle])
useEffect(() => {
setTabs(changelogs.map((item) => {