Condense category names to just the tag name
This commit is contained in:
parent
49f900b298
commit
31f57f8ff2
|
@ -2,11 +2,11 @@ export const CATEGORIES = {
|
||||||
politics: 'Politics',
|
politics: 'Politics',
|
||||||
technology: 'Technology',
|
technology: 'Technology',
|
||||||
sports: 'Sports',
|
sports: 'Sports',
|
||||||
gaming: 'Gaming / Esports',
|
gaming: 'Gaming',
|
||||||
manifold: 'Manifold Markets',
|
manifold: 'Manifold',
|
||||||
science: 'Science',
|
science: 'Science',
|
||||||
world: 'World',
|
world: 'World',
|
||||||
fun: 'Fun stuff',
|
fun: 'Fun',
|
||||||
personal: 'Personal',
|
personal: 'Personal',
|
||||||
economics: 'Economics',
|
economics: 'Economics',
|
||||||
crypto: 'Crypto',
|
crypto: 'Crypto',
|
||||||
|
|
|
@ -8,7 +8,6 @@ import { SiteLink } from './site-link'
|
||||||
function Hashtag(props: { tag: string; noLink?: boolean }) {
|
function Hashtag(props: { tag: string; noLink?: boolean }) {
|
||||||
const { tag, noLink } = props
|
const { tag, noLink } = props
|
||||||
const category = CATEGORIES[tag.replace('#', '').toLowerCase()]
|
const category = CATEGORIES[tag.replace('#', '').toLowerCase()]
|
||||||
console.log(tag, category)
|
|
||||||
|
|
||||||
const body = (
|
const body = (
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in New Issue
Block a user