refactor: renames, rewrite some file, function names and texts

This commit is contained in:
Riccardo
2024-06-18 12:03:56 +02:00
parent acc10bf5fd
commit e0b89237fb
22 changed files with 55 additions and 84 deletions

View File

@@ -1,4 +1,4 @@
import { sayings } from '@utils/sayings';
import { getSayings } from '@utils/getSayings';
import { textTruncate } from '@utils/textTruncate';
import { NewsType } from '@utils/validationSchemas';
import Template from './Template';
@@ -9,7 +9,7 @@ export default function NewsletterTemplate(stories: NewsType[]) {
template: (
<Template
title={`Here is something
${sayings[Math.floor(Math.random() * sayings.length)]}!`}
${getSayings[Math.floor(Math.random() * getSayings.length)]}!`}
body={
<div>
{stories.map(story => {