Skip to content

Commit

Permalink
Replaced all other links to messenger with telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
mug1wara26 committed Aug 21, 2024
1 parent 335c9f8 commit 63725ee
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
10 changes: 8 additions & 2 deletions website/src/config/app-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
"2022/2023",
"2023/2024"
],
"examAvailability": [1, 2, 3, 4],
"examAvailability": [
1,
2,
3,
4
],
"semesterNames": {
"1": "Semester 1",
"2": "Semester 2",
Expand All @@ -41,6 +46,7 @@
"githubOrg": "https://github.com/nusmodifications",
"githubRepo": "https://github.com/nusmodifications/nusmods",
"messenger": "https://m.me/nusmods",
"twitter": "https://twitter.com/nusmods"
"twitter": "https://twitter.com/nusmods",
"telegram": "https://t.me/nusmods"
}
}
1 change: 1 addition & 0 deletions website/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export type Config = {
githubOrg: string;
githubRepo: string;
messenger: string;
telegram: string;
twitter: string;
};

Expand Down
2 changes: 1 addition & 1 deletion website/src/views/components/FeedbackModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
color: #fff;
}

&.messenger {
&.telegram {
$button-bg: #3aa8db;

background: $button-bg;
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/components/FeedbackModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Props = {
export const FeedbackButtons: React.FC = () => (
<div>
<div className={styles.links}>
<ExternalLink className={styles.messenger} href={config.contact.messenger}>
<ExternalLink className={styles.telegram} href={config.contact.telegram}>
<Send />
Telegram
</ExternalLink>
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const FooterComponent: React.FC<Props> = (props) => {
<ExternalLink href={config.contact.facebook}>Facebook</ExternalLink>
</li>
<li>
<ExternalLink href={config.contact.messenger}>Messenger</ExternalLink>
<ExternalLink href={config.contact.telegram}>Telegram</ExternalLink>
</li>
<li>
<ExternalLink href={config.contact.twitter}>Twitter</ExternalLink>
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/settings/BetaToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const BetaToggle = memo<Props>((props) => {
<div className={styles.toggle}>
<Toggle className={styles.betaToggle} isOn={betaTester} onChange={toggleStates} />
{betaTester && hasTests && (
<ExternalLink className="btn btn-success" href={config.contact.messenger}>
<ExternalLink className="btn btn-success" href={config.contact.telegram}>

Check warning on line 50 in website/src/views/settings/BetaToggle.tsx

View check run for this annotation

Codecov / codecov/patch

website/src/views/settings/BetaToggle.tsx#L50

Added line #L50 was not covered by tests
Leave Feedback
</ExternalLink>
)}
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/static/AboutContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const AboutContainer: React.FC<Props> = (props) => (
</button>
</div>
<div className={classnames('col-lg', styles.btnContainer)}>
<ExternalLink href={config.contact.messenger} className="btn btn-primary btn-svg btn-block">
<ExternalLink href={config.contact.telegram} className="btn btn-primary btn-svg btn-block">
<Layers className="svg" />
We need designers!
</ExternalLink>
Expand Down
4 changes: 2 additions & 2 deletions website/src/views/static/FaqContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ const FaqContainer: React.FC = () => (
<p>
Congratulations on making it to the end! If you still want to contact us, you may reach us
via email at nusmods&#123;at&#125;googlegroups[dot]com or via{' '}
<ExternalLink href={config.contact.messenger}>Messenger</ExternalLink>. Please allow up to
90 working days for a reply. We are busy <Link to="/team">students</Link> as well!
<ExternalLink href={config.contact.telegram}>Telegram</ExternalLink>. Please allow up to 90
working days for a reply. We are busy <Link to="/team">students</Link> as well!
</p>
</div>
</StaticPage>
Expand Down

0 comments on commit 63725ee

Please sign in to comment.