style(post page): add window alert about Update button

This commit is contained in:
Tom (plebeius.eth)
2025-02-20 21:50:32 +01:00
parent d95d3342de
commit f4330e0a4b
+10 -2
View File
@@ -92,13 +92,21 @@ const UpdateButton = () => {
const { t } = useTranslation();
const isMobile = useIsMobile();
const handleUpdate = () => {
window.alert('Manual updates are not available yet. Posts update automatically every ~2 minutes.');
};
return (
<>
{/* TODO: Implement update button once available in API */}
{isMobile ? (
<button className={`button ${styles.disabledButton}`}>{t('update')}</button>
<button className={`button ${styles.disabledButton}`} onClick={handleUpdate}>
{t('update')}
</button>
) : (
<button className={`button ${styles.disabledButton}`}>{t('update')}</button>
<button className={`button ${styles.disabledButton}`} onClick={handleUpdate}>
{t('update')}
</button>
)}
</>
);