mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: rename variable
This commit is contained in:
parent
cc5967814b
commit
3c200aa2eb
3 changed files with 9 additions and 9 deletions
|
@ -17,7 +17,7 @@ export function SidebarProfile() {
|
|||
|
||||
const {
|
||||
userDetails,
|
||||
FriendRequestCount,
|
||||
friendRequestCount,
|
||||
showFriendsModal,
|
||||
syncFriendRequests,
|
||||
} = useUserDetails();
|
||||
|
@ -57,16 +57,16 @@ export function SidebarProfile() {
|
|||
}
|
||||
title={t("friends")}
|
||||
>
|
||||
{FriendRequestCount > 0 && (
|
||||
{friendRequestCount > 0 && (
|
||||
<small className={styles.friendsButtonBadge}>
|
||||
{FriendRequestCount > 99 ? "99+" : FriendRequestCount}
|
||||
{friendRequestCount > 99 ? "99+" : friendRequestCount}
|
||||
</small>
|
||||
)}
|
||||
|
||||
<PeopleIcon size={16} />
|
||||
</button>
|
||||
);
|
||||
}, [userDetails, t, FriendRequestCount, showFriendsModal]);
|
||||
}, [userDetails, t, friendRequestCount, showFriendsModal]);
|
||||
|
||||
return (
|
||||
<div className={styles.profileContainer}>
|
||||
|
|
|
@ -6,7 +6,7 @@ export interface UserDetailsState {
|
|||
userDetails: UserDetails | null;
|
||||
profileBackground: null | string;
|
||||
friendRequests: FriendRequest[];
|
||||
FriendRequestCount: number;
|
||||
friendRequestCount: number;
|
||||
isFriendsModalVisible: boolean;
|
||||
friendRequetsModalTab: UserFriendModalTab | null;
|
||||
friendModalUserId: string;
|
||||
|
@ -16,7 +16,7 @@ const initialState: UserDetailsState = {
|
|||
userDetails: null,
|
||||
profileBackground: null,
|
||||
friendRequests: [],
|
||||
FriendRequestCount: 0,
|
||||
friendRequestCount: 0,
|
||||
isFriendsModalVisible: false,
|
||||
friendRequetsModalTab: null,
|
||||
friendModalUserId: "",
|
||||
|
@ -36,7 +36,7 @@ export const userDetailsSlice = createSlice({
|
|||
state.friendRequests = action.payload;
|
||||
},
|
||||
setFriendRequestCount: (state, action: PayloadAction<number>) => {
|
||||
state.FriendRequestCount = action.payload;
|
||||
state.friendRequestCount = action.payload;
|
||||
},
|
||||
setFriendsModalVisible: (
|
||||
state,
|
||||
|
|
|
@ -22,7 +22,7 @@ export function useUserDetails() {
|
|||
userDetails,
|
||||
profileBackground,
|
||||
friendRequests,
|
||||
FriendRequestCount,
|
||||
friendRequestCount,
|
||||
isFriendsModalVisible,
|
||||
friendModalUserId,
|
||||
friendRequetsModalTab,
|
||||
|
@ -155,7 +155,7 @@ export function useUserDetails() {
|
|||
userDetails,
|
||||
profileBackground,
|
||||
friendRequests,
|
||||
FriendRequestCount,
|
||||
friendRequestCount,
|
||||
friendRequetsModalTab,
|
||||
isFriendsModalVisible,
|
||||
friendModalUserId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue