diff --git a/src/components/ReloadInfo.tsx b/src/components/ReloadInfo.tsx index dc960da..368ff7a 100644 --- a/src/components/ReloadInfo.tsx +++ b/src/components/ReloadInfo.tsx @@ -1,4 +1,4 @@ -import { FC, useCallback, useState } from 'react' +import { FC, useCallback, useEffect, useState } from 'react' import { Message } from 'semantic-ui-react' const ReloadInfo: FC = () => { @@ -9,6 +9,13 @@ const ReloadInfo: FC = () => { localStorage.setItem('showReloadInfo', '0') }, []) + useEffect(() => { + const timeoutId = setTimeout(() => { + setShowReloadInfo(false) + }, 10000) + return () => clearTimeout(timeoutId) + }, []) + return (