|
|
@ -392,12 +392,6 @@ export function RoadmapsPage() { |
|
|
|
|
|
|
|
|
|
|
|
const [isFilterOpen, setIsFilterOpen] = useState(false); |
|
|
|
const [isFilterOpen, setIsFilterOpen] = useState(false); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
if (!isFilterOpen) { |
|
|
|
|
|
|
|
document?.getElementById('filter-button')?.bringIntoView(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, [isFilterOpen]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (!activeGroup) { |
|
|
|
if (!activeGroup) { |
|
|
|
setVisibleGroups(allGroups); |
|
|
|
setVisibleGroups(allGroups); |
|
|
@ -475,6 +469,7 @@ export function RoadmapsPage() { |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
setActiveGroup(group.group); |
|
|
|
setActiveGroup(group.group); |
|
|
|
setIsFilterOpen(false); |
|
|
|
setIsFilterOpen(false); |
|
|
|
|
|
|
|
document?.getElementById('filter-button')?.scrollIntoView(); |
|
|
|
}} |
|
|
|
}} |
|
|
|
category={group.group} |
|
|
|
category={group.group} |
|
|
|
selected={activeGroup === group.group} |
|
|
|
selected={activeGroup === group.group} |
|
|
|