mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-18 18:02:36 +01:00
Merge branch 'most-popular-groups-search' into 'dev'
Adds an action for showing the most popular groups See merge request nitro/nitro-react!43
This commit is contained in:
commit
2d9cc60b08
@ -92,6 +92,9 @@ export const GroupInformationView: FC<GroupInformationViewProps> = props =>
|
||||
case 'furniture':
|
||||
CreateLinkEvent('catalog/open/' + CatalogPageName.GUILD_CUSTOM_FURNI);
|
||||
break;
|
||||
case 'popular_groups':
|
||||
CreateLinkEvent('navigator/search/groups');
|
||||
break;
|
||||
}
|
||||
}, [ groupInformation ]);
|
||||
|
||||
@ -131,7 +134,7 @@ export const GroupInformationView: FC<GroupInformationViewProps> = props =>
|
||||
<Column gap={ 1 }>
|
||||
<Text small underline pointer onClick={ () => handleAction('homeroom') }>{ LocalizeText('group.linktobase') }</Text>
|
||||
<Text small underline pointer onClick={ () => handleAction('furniture') }>{ LocalizeText('group.buyfurni') }</Text>
|
||||
<Text small underline pointer>{ LocalizeText('group.showgroups') }</Text>
|
||||
<Text small underline pointer onClick={ () => handleAction('popular_groups') }>{ LocalizeText('group.showgroups') }</Text>
|
||||
</Column>
|
||||
{ (groupInformation.type !== GroupType.PRIVATE) &&
|
||||
<Button disabled={ (groupInformation.membershipType === GroupMembershipType.REQUEST_PENDING) || isRealOwner } onClick={ handleButtonClick }>
|
||||
|
Loading…
x
Reference in New Issue
Block a user