From 0ab19ad130f12347d0b06aec5a3990f674b83aac Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sat, 24 Jun 2023 08:35:17 -0400 Subject: [PATCH] fix(directory): fixed an issue where fast navigation did not reset on changelogs page --- changelogs.yaml | 11 +++++++++++ directory/Version | 2 +- directory/src/routes/path/Changelogs.jsx | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/changelogs.yaml b/changelogs.yaml index dbb20b2..5458bfd 100644 --- a/changelogs.yaml +++ b/changelogs.yaml @@ -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: diff --git a/directory/Version b/directory/Version index 21344eb..5ab1538 100644 --- a/directory/Version +++ b/directory/Version @@ -1 +1 @@ -1.2.17 \ No newline at end of file +1.2.18 \ No newline at end of file diff --git a/directory/src/routes/path/Changelogs.jsx b/directory/src/routes/path/Changelogs.jsx index 5f0d38f..bc13a1c 100644 --- a/directory/src/routes/path/Changelogs.jsx +++ b/directory/src/routes/path/Changelogs.jsx @@ -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) => {