mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 08:50:51 +01:00
Random changes
This commit is contained in:
parent
d860a49a9f
commit
eadd1290f4
@ -47,7 +47,7 @@ export const FriendsSearchView: FC<FriendsSearchViewProps> = props =>
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<NitroCardAccordionSetView { ...rest }>
|
<NitroCardAccordionSetView { ...rest }>
|
||||||
<input type="text" className="search-input form-control form-control-sm w-100 rounded-0" placeholder={ LocalizeText('generic.search') } value={ searchValue } onChange={ event => setSearchValue(event.target.value) } />
|
<input type="text" className="search-input form-control form-control-sm w-100 rounded-0" placeholder={ LocalizeText('generic.search') } value={ searchValue } maxLength={ 50 } onChange={ event => setSearchValue(event.target.value) } />
|
||||||
<Column>
|
<Column>
|
||||||
{ friendResults &&
|
{ friendResults &&
|
||||||
<>
|
<>
|
||||||
@ -104,38 +104,6 @@ export const FriendsSearchView: FC<FriendsSearchViewProps> = props =>
|
|||||||
</Column> }
|
</Column> }
|
||||||
</> }
|
</> }
|
||||||
</Column>
|
</Column>
|
||||||
{/* <NitroCardAccordionView>
|
|
||||||
<NitroCardAccordionSetView headerText={ LocalizeText('friendlist.search.friendscaption', [ 'cnt' ], [ friendResults.length.toString() ]) } isExpanded={ true }>
|
|
||||||
{ (friendResults.length > 0) && friendResults.map(result =>
|
|
||||||
{
|
|
||||||
return (
|
|
||||||
<NitroCardAccordionItemView key={ result.avatarId }>
|
|
||||||
<UserProfileIconView userId={ result.avatarId } />
|
|
||||||
<Flex>{ result.avatarName }</Flex>
|
|
||||||
<Flex className="ms-auto align-items-center" gap={ 1 }>
|
|
||||||
{ result.isAvatarOnline &&
|
|
||||||
<Base className="nitro-friends-spritesheet icon-chat cursor-pointer" onClick={ event => OpenMessengerChat(result.avatarId) } title={ LocalizeText('friendlist.tip.im') } /> }
|
|
||||||
</Flex>
|
|
||||||
</NitroCardAccordionItemView>
|
|
||||||
);
|
|
||||||
}) }
|
|
||||||
</NitroCardAccordionSetView>
|
|
||||||
<NitroCardAccordionSetView headerText={ LocalizeText('friendlist.search.otherscaption', [ 'cnt' ], [ otherResults.length.toString() ]) } isExpanded={ true }>
|
|
||||||
{ (otherResults.length > 0) && otherResults.map(result =>
|
|
||||||
{
|
|
||||||
return (
|
|
||||||
<NitroCardAccordionItemView key={ result.avatarId }>
|
|
||||||
<UserProfileIconView userId={ result.avatarId } />
|
|
||||||
<Base>{ result.avatarName }</Base>
|
|
||||||
<Flex className="ms-auto align-items-center" gap={ 1 }>
|
|
||||||
{ canRequestFriend(result.avatarId) &&
|
|
||||||
<Base className="nitro-friends-spritesheet icon-add cursor-pointer" onClick={ event => requestFriend(result.avatarId, result.avatarName) } title={ LocalizeText('friendlist.tip.addfriend') } /> }
|
|
||||||
</Flex>
|
|
||||||
</NitroCardAccordionItemView>
|
|
||||||
);
|
|
||||||
}) }
|
|
||||||
</NitroCardAccordionSetView>
|
|
||||||
</NitroCardAccordionView> */}
|
|
||||||
</NitroCardAccordionSetView>
|
</NitroCardAccordionSetView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ export const GuideToolMenuView: FC<GuideToolMenuViewProps> = props =>
|
|||||||
</Flex>
|
</Flex>
|
||||||
<hr className="bg-dark m-0" />
|
<hr className="bg-dark m-0" />
|
||||||
<Flex justifyContent="between" gap={ 2 }>
|
<Flex justifyContent="between" gap={ 2 }>
|
||||||
<Button onClick={ event => processAction('forum_link') }>{ LocalizeText('guide.help.guide.tool.forum.link') }</Button>
|
<Button disabled onClick={ event => processAction('forum_link') }>{ LocalizeText('guide.help.guide.tool.forum.link') }</Button>
|
||||||
<Button disabled>{ LocalizeText('guide.help.guide.tool.skill.link') }</Button>
|
<Button disabled>{ LocalizeText('guide.help.guide.tool.skill.link') }</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Column>
|
</Column>
|
||||||
|
@ -29,9 +29,9 @@ export const InfoStandWidgetUserRelationshipsView: FC<InfoStandWidgetUserRelatio
|
|||||||
<Flex alignItems="center" gap={ 1 }>
|
<Flex alignItems="center" gap={ 1 }>
|
||||||
<i className={`nitro-friends-spritesheet icon-${relationshipName}`} />
|
<i className={`nitro-friends-spritesheet icon-${relationshipName}`} />
|
||||||
<Flex alignItems="center" gap={ 0 }>
|
<Flex alignItems="center" gap={ 0 }>
|
||||||
<Text variant="white" onClick={ event => GetUserProfile(relationshipInfo.randomFriendId) }>{ relationshipInfo.randomFriendName }</Text>
|
<Text small variant="white" onClick={ event => GetUserProfile(relationshipInfo.randomFriendId) }>{ relationshipInfo.randomFriendName }</Text>
|
||||||
{ (relationshipInfo.friendCount > 1) &&
|
{ (relationshipInfo.friendCount > 1) &&
|
||||||
<Text variant="white">{ ' ' + LocalizeText(`extendedprofile.relstatus.others.${ relationshipName }`, [ 'count' ], [ (relationshipInfo.friendCount - 1).toString() ]) }</Text> }
|
<Text small variant="white">{ ' ' + LocalizeText(`extendedprofile.relstatus.others.${ relationshipName }`, [ 'count' ], [ (relationshipInfo.friendCount - 1).toString() ]) }</Text> }
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user