Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refatorar componentes de e-mail #1645

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Refatorar componentes de e-mail #1645

merged 1 commit into from
Mar 10, 2024

Conversation

Rafatcb
Copy link
Collaborator

@Rafatcb Rafatcb commented Mar 9, 2024

Mudanças realizadas

Este PR é uma refatoração dos arquivos em models/transactional/emails para criar componentes onde havia muita repetição de estilização. É uma continuação do que havia sido iniciado em #1638.

Além do que havia sido feito, criei o componente LinkText, que contém a estilização de "código" e também está com o texto que era repetido em todo lugar (Se você não conseguir clicar no link, copie e cole o endereço abaixo no seu navegador:).

Pensei em colocar o LinkText dentro do Link, mas isso tiraria a flexibilidade de usar um link como parte do parágrafo, e não como o parágrafo inteiro.

Tipo de mudança

  • Refatoração

Checklist:

  • As modificações não geram novos logs de erro ou aviso (warning).
  • Tanto os novos testes quanto os antigos estão passando localmente.

Create components to reuse `Text` and `Link` styles; create `LinkText` component to use the same
text that references the link and to display the link as "code"
Copy link

vercel bot commented Mar 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tabnews ✅ Ready (Inspect) Visit Preview Mar 9, 2024 10:42pm

@aprendendofelipe aprendendofelipe merged commit ff261d8 into main Mar 10, 2024
7 checks passed
@aprendendofelipe aprendendofelipe deleted the refactor-email-html branch March 10, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants