mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix reload issues in Notifications
This commit is contained in:
parent
dd5b374b53
commit
2ee38f43d2
2 changed files with 7 additions and 2 deletions
|
@ -49,7 +49,7 @@ const contentText = {
|
|||
'favourite+reblog': 'boosted & favourited your post.',
|
||||
};
|
||||
|
||||
function Notification({ notification, instance }) {
|
||||
function Notification({ notification, instance, reload }) {
|
||||
const { id, status, account, _accounts } = notification;
|
||||
let { type } = notification;
|
||||
|
||||
|
@ -137,7 +137,7 @@ function Notification({ notification, instance }) {
|
|||
<FollowRequestButtons
|
||||
accountID={account.id}
|
||||
onChange={() => {
|
||||
loadNotifications(true);
|
||||
reload();
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -285,6 +285,7 @@ function Notifications() {
|
|||
accountID={account.id}
|
||||
onChange={() => {
|
||||
loadFollowRequests();
|
||||
loadNotifications(true);
|
||||
}}
|
||||
/>
|
||||
</li>
|
||||
|
@ -337,6 +338,10 @@ function Notifications() {
|
|||
instance={instance}
|
||||
notification={notification}
|
||||
key={notification.id}
|
||||
reload={() => {
|
||||
loadNotifications(true);
|
||||
loadFollowRequests();
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue