Rename 'community_channels.js' -> 'channels.js' for re-use

Re-using this file to put more hardcoded channels.
This commit is contained in:
infinite-persistence 2022-05-23 10:28:09 +08:00
parent 676f461a9f
commit 8eb6ffd2b9
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 3 additions and 5 deletions

View file

@ -2,7 +2,7 @@
import { CUSTOM_HOMEPAGE, SIMPLE_SITE, SITE_NAME } from 'config'; import { CUSTOM_HOMEPAGE, SIMPLE_SITE, SITE_NAME } from 'config';
import { parseURI } from 'util/lbryURI'; import { parseURI } from 'util/lbryURI';
import * as CS from 'constants/claim_search'; import * as CS from 'constants/claim_search';
import COMMUNITY_CHANNELS from 'constants/community_channels'; import { COMMUNITY_CHANNELS } from 'constants/channels';
import Button from 'component/button'; import Button from 'component/button';
import Card from 'component/common/card'; import Card from 'component/common/card';
import ClaimListDiscover from 'component/claimListDiscover'; import ClaimListDiscover from 'component/claimListDiscover';

View file

@ -15,11 +15,9 @@ const DE_CHANNELS =
' ' + ' ' +
'lbry://@OdyseeHilfe#14dd52c6105698159df73eb1fac89da477f895ea'; 'lbry://@OdyseeHilfe#14dd52c6105698159df73eb1fac89da477f895ea';
const COMMUNITY_CHANNELS = { export const COMMUNITY_CHANNELS = Object.freeze({
en: AUTO_FOLLOW_CHANNELS, en: AUTO_FOLLOW_CHANNELS,
'pt-BR': PT_BR_CHANNELS, 'pt-BR': PT_BR_CHANNELS,
es: ES_CHANNELS, es: ES_CHANNELS,
de: DE_CHANNELS, de: DE_CHANNELS,
}; });
export default COMMUNITY_CHANNELS;