Skip to content

Commit 4cf991d

Browse files
mug1wara26zwliew
andauthored
Replace messenger with telegram (#3802)
Co-authored-by: Zhao Wei Liew <[email protected]>
1 parent 2841bb6 commit 4cf991d

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

website/src/config/app-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"facebook": "https://facebook.com/nusmods",
4646
"githubOrg": "https://github.com/nusmodifications",
4747
"githubRepo": "https://github.com/nusmodifications/nusmods",
48-
"messenger": "https://m.me/nusmods",
4948
"twitter": "https://twitter.com/nusmods",
5049
"telegram": "https://t.me/NUSMods"
5150
}

website/src/config/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export type Config = {
6363
facebook: string;
6464
githubOrg: string;
6565
githubRepo: string;
66-
messenger: string;
6766
twitter: string;
6867
telegram: string;
6968
};

website/src/views/components/FeedbackModal.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "~styles/utils/modules-entry";
1+
@import '~styles/utils/modules-entry';
22

33
.content {
44
text-align: center;
@@ -41,8 +41,8 @@
4141
color: #fff;
4242
}
4343

44-
&.messenger {
45-
$button-bg: #0084ff;
44+
&.telegram {
45+
$button-bg: #3aa8db;
4646

4747
background: $button-bg;
4848

website/src/views/components/FeedbackModal.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { connect } from 'react-redux';
3-
import { Heart, GitHub, Mail } from 'react-feather';
3+
import { Heart, GitHub, Mail, Send } from 'react-feather';
44

55
import config from 'config';
66
import { toggleFeedback } from 'actions/app';
@@ -18,6 +18,10 @@ type Props = {
1818
export const FeedbackButtons: React.FC = () => (
1919
<div>
2020
<div className={styles.links}>
21+
<ExternalLink className={styles.telegram} href={config.contact.telegram}>
22+
<Send />
23+
Telegram
24+
</ExternalLink>
2125
<ExternalLink className={styles.github} href={config.contact.githubRepo}>
2226
<GitHub />
2327
GitHub
@@ -48,8 +52,8 @@ export const FeedbackModalComponent: React.FC<Props> = (props) => (
4852
<Heart className={styles.topIcon} />
4953
<h1>Let us know what you think!</h1>
5054
<p>
51-
Thank you for your time! You can talk to us on Messenger, file an issue on GitHub, or send
52-
us an email.
55+
Thank you for your time! You can talk to us on Telegram, file an issue on GitHub, or send us
56+
an email.
5357
</p>
5458
<FeedbackButtons />
5559
</div>

website/src/views/settings/BetaToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const BetaToggle = memo<Props>((props) => {
4747
<div className={styles.toggle}>
4848
<Toggle className={styles.betaToggle} isOn={betaTester} onChange={toggleStates} />
4949
{betaTester && hasTests && (
50-
<ExternalLink className="btn btn-success" href={config.contact.messenger}>
50+
<ExternalLink className="btn btn-success" href={config.contact.telegram}>
5151
Leave Feedback
5252
</ExternalLink>
5353
)}

website/src/views/static/AboutContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const AboutContainer: React.FC<Props> = (props) => (
5757
</button>
5858
</div>
5959
<div className={classnames('col-lg', styles.btnContainer)}>
60-
<ExternalLink href={config.contact.messenger} className="btn btn-primary btn-svg btn-block">
60+
<ExternalLink href={config.contact.telegram} className="btn btn-primary btn-svg btn-block">
6161
<Layers className="svg" />
6262
We need designers!
6363
</ExternalLink>

website/src/views/static/FaqContainer.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@ const FaqContainer: React.FC = () => (
179179
<p>
180180
Congratulations on making it to the end! If you still want to contact us, you may reach us
181181
via email at mods&#123;at&#125;nusmods[dot]com or via{' '}
182-
<ExternalLink href={config.contact.telegram}>Telegram</ExternalLink> or via{' '}
183-
<ExternalLink href={config.contact.messenger}>Messenger</ExternalLink>. Please allow up to
184-
90 working days for a reply. We are busy <Link to="/team">students</Link> as well!
182+
<ExternalLink href={config.contact.telegram}>Telegram</ExternalLink>. Please allow up to 90
183+
working days for a reply. We are busy <Link to="/team">students</Link> as well!
185184
</p>
186185
</div>
187186
</StaticPage>

0 commit comments

Comments
 (0)