mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 23:10:28 +03:00
Add a page and config option for a room directory server
This commit is contained in:
parent
e45368f099
commit
6a462d2801
5 changed files with 113 additions and 37 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { useMatch, useParams } from 'react-router-dom';
|
||||
import { getExploreFeaturedPath, getExplorePath } from '../../pages/pathUtils';
|
||||
import { useClientConfig } from '../useClientConfig';
|
||||
|
||||
export const useExploreSelected = (): boolean => {
|
||||
const match = useMatch({
|
||||
|
|
@ -26,3 +27,8 @@ export const useExploreServer = (): string | undefined => {
|
|||
|
||||
return server;
|
||||
};
|
||||
|
||||
export const useDirectoryServer = (): string | undefined => {
|
||||
const { featuredCommunities } = useClientConfig();
|
||||
return featuredCommunities?.directoryServer;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue