mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
fixed dots on lab and flow
This commit is contained in:
parent
2395c9fbab
commit
2160f50711
3 changed files with 20 additions and 14 deletions
|
@ -26,12 +26,10 @@ import styles from './styles.module.scss';
|
|||
export interface HeaderProps {}
|
||||
|
||||
const Header: FC<HeaderProps> = observer(() => {
|
||||
const labStats = useGetLabStats();
|
||||
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
const { showModal } = useModal();
|
||||
const { isUser, user } = useAuth();
|
||||
const { updates: flowUpdates } = useFlow();
|
||||
const { hasFlowUpdates, hasLabUpdates } = useFlow();
|
||||
const { borisCommentedAt } = useUpdates();
|
||||
const { open } = useSidebar();
|
||||
|
||||
|
@ -52,12 +50,6 @@ const Header: FC<HeaderProps> = observer(() => {
|
|||
[borisCommentedAt, isUser, user.last_seen_boris],
|
||||
);
|
||||
|
||||
const hasLabUpdates = useMemo(
|
||||
() => labStats.updates.length > 0,
|
||||
[labStats.updates],
|
||||
);
|
||||
const hasFlowUpdates = useMemo(() => flowUpdates.length > 0, [flowUpdates]);
|
||||
|
||||
// Needed for SSR
|
||||
useEffect(() => {
|
||||
setIsScrolled(top > 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue