From ed7f9e978a3fba0efc78c120861befc7245f835b Mon Sep 17 00:00:00 2001 From: gofnnp Date: Tue, 12 Sep 2023 03:08:16 +0400 Subject: [PATCH] fix: accelerated the appearance of the text by 2 times --- src/components/CompatResultPage/index.tsx | 2 +- src/components/StartBreathModalChild/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/CompatResultPage/index.tsx b/src/components/CompatResultPage/index.tsx index 18a2527..a4b2a12 100644 --- a/src/components/CompatResultPage/index.tsx +++ b/src/components/CompatResultPage/index.tsx @@ -49,7 +49,7 @@ function CompatResultPage(): JSX.Element { setText(aICompat?.compat?.body || "Loading..."); return aICompat.compat; - }, [api, rightUser, categoryId]); + }, [api, rightUser, categoryId, birthdate]); useApiCall(loadData); diff --git a/src/components/StartBreathModalChild/index.tsx b/src/components/StartBreathModalChild/index.tsx index b023396..7be6eb5 100644 --- a/src/components/StartBreathModalChild/index.tsx +++ b/src/components/StartBreathModalChild/index.tsx @@ -16,12 +16,12 @@ function StartBreathModalChild({
{t("breathe-title").split("").map((symbol, index) => ( - <span className={styles["symbol"]} style={{ animationDelay: `${index * 0.1}s` }} key={index}>{symbol}</span> + <span className={styles["symbol"]} style={{ animationDelay: `${index * 0.05}s` }} key={index}>{symbol}</span> ))} {t("breathe-subtitle").split("").map((symbol, index) => ( - <span className={styles["symbol"]} style={{ animationDelay: `${(t("breathe-title").split("").length + index) * 0.1}s` }} key={index}>{symbol}</span> + <span className={styles["symbol"]} style={{ animationDelay: `${(t("breathe-title").split("").length + index) * 0.05}s` }} key={index}>{symbol}</span> ))}