From da22b02e9c25c9fcdb4aa1fe273db92d24fd53e1 Mon Sep 17 00:00:00 2001 From: Levi Siebra Date: Sun, 29 Dec 2024 13:32:14 -0300 Subject: [PATCH] refactor: remove console logs, improve readme and add target to footer twitter link --- README.md | 2 +- src/app/actions/textToSpeechAction.ts | 2 +- src/components/Footer/Footer.tsx | 2 +- src/components/Footer/FooterButton.tsx | 6 ++---- src/components/LessonComplete/lessonComplete.tsx | 5 ++--- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index afcd549..12586d1 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ nvm install v20 nvm use ``` -Now go to ```cd tech-ears``` and run ```yarn install``` +Now go to ```cd tech-ears```, run ```yarn install``` and when finish install, run ```yarn dev``` After that you can go to: ```http://localhost:3000``` so you can run locally. diff --git a/src/app/actions/textToSpeechAction.ts b/src/app/actions/textToSpeechAction.ts index 1f00f6c..2b7bdb0 100644 --- a/src/app/actions/textToSpeechAction.ts +++ b/src/app/actions/textToSpeechAction.ts @@ -17,7 +17,7 @@ export async function textToSpeechAction(phrase: string) { }; const apiKey = process.env.GOOGLE_API_KEY; - console.log("asdasd"); + const response = await fetch( `https://texttospeech.googleapis.com/v1/text:synthesize?key=${apiKey}`, options diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 42e7488..cb87982 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -7,7 +7,7 @@ export default function Footer() { © 2024 TechEars. All rights reserved. Made with Love by - + @ThurrDev from diff --git a/src/components/Footer/FooterButton.tsx b/src/components/Footer/FooterButton.tsx index 0173d40..09719ca 100644 --- a/src/components/Footer/FooterButton.tsx +++ b/src/components/Footer/FooterButton.tsx @@ -14,7 +14,6 @@ export default function FooterButton({ disabled, onButtonPress, buttonState, chi return "bg-green-500"; } if (buttonState = !null && buttonState == false) { - console.log("Estado 2" + buttonState); return "bg-red-500"; } return; @@ -26,9 +25,8 @@ export default function FooterButton({ disabled, onButtonPress, buttonState, chi
{ }, []); const shareProgress = () => { - console.log("Share Progress Clicked"); const tweetText = `I just used TechEars to practice my English ✨, I got ${storedCorrectCount} phrases correctly! Join me at: techears.tech`; const twitterUrl = `https://twitter.com/compose/tweet?text=${encodeURIComponent(tweetText)}`; window.open(twitterUrl, "_blank"); @@ -45,8 +44,8 @@ const LessonComplete = ({ correctCount }) => { href="https://www.techears.tech" className="sm:max-w-56 bg-white text-black py-3 px-4 border border-solid border-gray-300 text-center justify-center w-full flex rounded-2xl font-semibold text-xl gap-2 hover:scale-110 transition-all items-center" > - Back To Home - + Back To Home +