Skip to content

Commit

Permalink
trying to fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
imrany committed Oct 21, 2024
1 parent 17b6131 commit 4ab1b57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function LandingPage(){
<p className="text-sm">{middleSectionContent[2]}</p>
</div>
</div>
<footer onDoubleClick={()=>readSection(footerSectionContent)} className="px-4 py-6 bg-blue-500 text-white flex ">
<footer onDoubleClick={()=>readSection(footerSectionContent)} className="px-4 h-[200px] py-6 bg-blue-800 text-white flex ">
<div className="flex flex-col gap-2">
<p className="text-lg font-semibold">{footerSectionContent[0]}</p>
<div className="text-sm flex flex-col gap-1">
Expand Down
9 changes: 5 additions & 4 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ export default function MainPage() {
}
}else{
window.speechSynthesis.cancel()
setInterval(() => {
detect(net);
}, 10);
}
}

setInterval(() => {
detect(net);
}, 10);
},[isLoading, voiceInput]);

return (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export default function SearchPage(){
}
}else{
window.speechSynthesis.cancel()
}
checkQueryAndCapture()
getResults()
},[])
}
},[voiceInput])
return(
<>
{isLoading&&isLoading?(
Expand Down

0 comments on commit 4ab1b57

Please sign in to comment.