Skip to content

Commit

Permalink
fix: update telegram banner message (#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys authored Dec 11, 2024
1 parent df1500d commit 789ed84
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions client/src/modules/Notifications/components/Consents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,21 @@ export function Consents({

return !hasContacts ? (
<Space direction="vertical" style={{ width: '100%' }}>
{!hasTelegram && (
<Alert
message={
<div>
Note: To enable telegram notifications please open the <a href={rsschoolBotLink}>@rsschool_bot</a> and
<Alert
message={
hasTelegram ? (
<>
Telegram notifications are sent from <a href={rsschoolBotLink}>@rsschool_bot</a>
</>
) : (
<>
Note: To enable Telegram notifications please open the <a href={rsschoolBotLink}>@rsschool_bot</a> and
click the <b>Start</b> button to set it up
</div>
}
type="info"
/>
)}
</>
)
}
type="info"
/>

{!hasDiscord && (
<Alert
Expand Down

0 comments on commit 789ed84

Please sign in to comment.