
Adicionando subcategorias para uma tribo
Navegue para src/app/components/pages/PostsIndex.jsx abre o arquivo e procure por: let page_title e adicione let sub_categ = []; (pode chamar a variavel de qualquer coisa).
Depois procure por: else if (category) abaixo de page_title = '#' + category; adicione uma condição if:
if(category === 'nomedatag'){ page_title = 'Carros'; sub_categ[0] = <Link to="/tag/ferrari">Ferrari</Link>; sub_categ[1] = <Link to="/tag/fusca">Fusca</Link>; sub_categ[2] = <Link to="/tag/templa">Templa</Link>; sub_categ[3] = <Link to="/tag/fiat">Uno</Link>; }
Troque o nome da tag para a tag que voce quer adicionar a sub categoria. E não esqueça de adicionar o else:
else{ sub_categ = []; sub_categ = ["Unmoderated tag"]; }
Adicione para o tanto de tags que você quiser.
agora procure por Unmoderated tag e o substitua por(não é da condição else não):
<div className="TagList__horizontal">{sub_categ}</div>
Indice de Posts
Leave Adicionando subcategorias para uma tribo to:
Read more #nitrous-ptbr posts
Best Posts From Echo of eternity
We have not curated any of sm-silva's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Echo of eternity
- What is the ideal APR value for HBD/HUSD at this time?
- Minha meta para 2022 - Splinterlands
- Tentando a sorte ao abrir um pack do chaos
- Segundo airdrop de cartas foi revelado.
- Criando contas na HIVE blockchain usando Chaves Publicas!
- Cadê meu curation? HardFork 25 deu um reset nele.
- Mudanças do HardFork 25 Equilíbrio
- Index
- Posts com informações que acho interessantes
- Tribes Whitepaper