Condense category names to just the tag name

This commit is contained in:
James Grugett 2022-05-12 11:18:44 -04:00
parent 49f900b298
commit 31f57f8ff2
2 changed files with 3 additions and 4 deletions

View File

@ -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',

View File

@ -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