mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Better blur effect in sidebar
This commit is contained in:
@@ -42,7 +42,10 @@ const Sidebar: FC<SidebarProps> = ({ height }) => {
|
||||
const expandTimer = useRef(0);
|
||||
const sidebarRef = useRef<HTMLElement>(null);
|
||||
const clearTimer = (): void => {
|
||||
if (expandTimer.current) clearTimeout(expandTimer.current);
|
||||
if (expandTimer.current) {
|
||||
clearTimeout(expandTimer.current);
|
||||
expandTimer.current = 0;
|
||||
}
|
||||
};
|
||||
const topButtons: SidebarButtons = useMemo(
|
||||
() => [
|
||||
|
||||
Reference in New Issue
Block a user