Skip to content

Commit 45997d6

Browse files
committed
feat(neuron-ui): scroll the overview view to the top on wallet switching
1 parent 01ff207 commit 45997d6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/neuron-ui/src/components/Overview

packages/neuron-ui/src/components/Overview/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ const Overview = ({
124124

125125
useEffect(() => {
126126
if (id) {
127-
const activityListContainer = document.querySelector('.ms-DetailsList>div') as HTMLElement
128-
if (activityListContainer) {
129-
backToTop(activityListContainer)
130-
}
127+
backToTop()
131128
}
132129
}, [id])
133130

0 commit comments

Comments
 (0)