mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add 'coming soon' alert to inactive buttons
This commit is contained in:
@@ -96,11 +96,11 @@ const UpdateButton = () => {
|
||||
<>
|
||||
{/* TODO: Implement update button once available in API */}
|
||||
{isMobile ? (
|
||||
<button className={`button ${styles.disabledButton}`} disabled>
|
||||
<button className={`button ${styles.disabledButton}`} onClick={() => alert('Coming soon')}>
|
||||
{t('update')}
|
||||
</button>
|
||||
) : (
|
||||
<button className={`button ${styles.disabledButton}`} disabled>
|
||||
<button className={`button ${styles.disabledButton}`} onClick={() => alert('Coming soon')}>
|
||||
{t('update')}
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -91,6 +91,7 @@ const TopBarDesktop = () => {
|
||||
to='boards/create'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('Coming soon');
|
||||
}}
|
||||
>
|
||||
Create
|
||||
@@ -101,6 +102,7 @@ const TopBarDesktop = () => {
|
||||
to='boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('Coming soon');
|
||||
}}
|
||||
>
|
||||
Vote
|
||||
|
||||
Reference in New Issue
Block a user