mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 04:06:36 +00:00
💡 comment
This commit is contained in:
@@ -38,7 +38,7 @@ export default function ProductUpdates({
|
|||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const [showMoreUpdatesText, setShowMoreUpdatesText] = React.useState(false);
|
const [showMoreUpdatesText, setShowMoreUpdatesText] = React.useState(false);
|
||||||
|
|
||||||
// we need to delay the initial
|
// we delay the small text so that the user can notice it
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
const timeout = setTimeout(() => setShowMoreUpdatesText(true), 600);
|
const timeout = setTimeout(() => setShowMoreUpdatesText(true), 600);
|
||||||
return () => clearTimeout(timeout);
|
return () => clearTimeout(timeout);
|
||||||
|
|||||||
Reference in New Issue
Block a user