mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -04:00
put notifications top of router
This commit is contained in:
commit
21e246bcde
|
@ -1,5 +1,5 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { getGroups, getNotifications } from './api';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { getGroups } from './api';
|
||||
import { IGroup } from './Group';
|
||||
import GroupCreatorLink from './GroupCreatorLink';
|
||||
import GroupJoinerLink from './GroupJoinerLink';
|
||||
|
@ -7,6 +7,7 @@ import GroupList from './GroupList';
|
|||
|
||||
export default function Groups() {
|
||||
const [groups, setGroups] = useState<IGroup[]>([]);
|
||||
// eslint-disable-next-line
|
||||
useEffect(() => {
|
||||
getGroups().then(setGroups);
|
||||
}, []);
|
||||
|
|
|
@ -22,7 +22,7 @@ export default function Notification({
|
|||
|
||||
const rejectInv = useCallback(() => {
|
||||
denyInvite(notification.user.id);
|
||||
}, []);
|
||||
}, [notification.user.id]);
|
||||
|
||||
return (
|
||||
<div className="notification">
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { userInfo } from 'node:os';
|
||||
import Notification from './Notification';
|
||||
|
||||
export type INotification = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user