Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a786f4b

Browse files
authored
Merge pull request #260 from sanjam-deriv/removetelegram
2 parents 4d3cf5e + c0a27dc commit a786f4b

File tree

4 files changed

+0
-31
lines changed

4 files changed

+0
-31
lines changed

src/components/Footer/__tests__/Footer.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ describe('HeroHeader', () => {
3131
expect(community_link).toBeInTheDocument();
3232
expect(community_link).toHaveAttribute('href', 'https://deriv.vanillacommunity.com/');
3333
});
34-
it('should render telegram link properly', () => {
35-
const telegram_link = screen.getByRole('link', { name: 'Telegram' });
36-
expect(telegram_link).toBeInTheDocument();
37-
expect(telegram_link).toHaveAttribute('href', 'https://t.me/+g6FV5tFY1u9lZGE1');
38-
});
3934
it('should render footer body texts properly', () => {
4035
const help_text = screen.getByText(/^we're here to help$/i);
4136
expect(help_text).toBeInTheDocument();

src/components/Footer/index.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ const Footer = () => {
2121
>
2222
<span>Join our community</span>
2323
</a>
24-
<a
25-
href='https://t.me/+g6FV5tFY1u9lZGE1'
26-
target='_blank'
27-
rel='noreferrer'
28-
className={styles.communityButton}
29-
>
30-
<div className={styles.Telegram}>
31-
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
32-
<p>Telegram</p>
33-
</div>
34-
</a>
3524
</div>
3625
</section>
3726
<section className={styles.FooterBody}>

src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/__tests__/register-app-dialog-success.test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ describe('App Dialog Register Success', () => {
2929
});
3030

3131
it('Should render buttons properly', () => {
32-
const primaryButton = screen.getByRole('button', { name: /join our telegram community/i });
3332
const secondaryButton = screen.getByRole('button', { name: /got it/i });
34-
35-
expect(primaryButton).toBeInTheDocument();
3633
expect(secondaryButton).toBeInTheDocument();
3734
});
3835

@@ -48,13 +45,4 @@ describe('App Dialog Register Success', () => {
4845

4946
expect(mockOnClose).toHaveBeenCalledTimes(1);
5047
});
51-
52-
it('Should update current tab on primary button click to Manage Application', async () => {
53-
const primaryButton = screen.getByRole('button', { name: /join our telegram community/i });
54-
55-
await userEvent.click(primaryButton);
56-
57-
expect(mockUpdateCurrentTab).toHaveBeenCalledTimes(1);
58-
expect(mockUpdateCurrentTab).toHaveBeenCalledWith('MANAGE_APPS');
59-
});
6048
});

src/features/dashboard/components/Dialogs/RegisterAppDialogSuccess/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export const RegisterAppDialogSuccess = ({ onClose }: IRegisterAppDialogSuccessP
3232
<Button color='secondary' onClick={onClose} className={styles.btn}>
3333
Got it
3434
</Button>
35-
<Button color='primary' onClick={onSuccessfulClick} className={styles.btn}>
36-
Join our Telegram Community
37-
</Button>
3835
</div>
3936
</Modal.PageContent>
4037
</div>

0 commit comments

Comments
 (0)