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

Commit

Permalink
Merge pull request #260 from sanjam-deriv/removetelegram
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjam-deriv authored Nov 16, 2023
2 parents 4d3cf5e + c0a27dc commit a786f4b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
5 changes: 0 additions & 5 deletions src/components/Footer/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ describe('HeroHeader', () => {
expect(community_link).toBeInTheDocument();
expect(community_link).toHaveAttribute('href', 'https://deriv.vanillacommunity.com/');
});
it('should render telegram link properly', () => {
const telegram_link = screen.getByRole('link', { name: 'Telegram' });
expect(telegram_link).toBeInTheDocument();
expect(telegram_link).toHaveAttribute('href', 'https://t.me/+g6FV5tFY1u9lZGE1');
});
it('should render footer body texts properly', () => {
const help_text = screen.getByText(/^we're here to help$/i);
expect(help_text).toBeInTheDocument();
Expand Down
11 changes: 0 additions & 11 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ const Footer = () => {
>
<span>Join our community</span>
</a>
<a
href='https://t.me/+g6FV5tFY1u9lZGE1'
target='_blank'
rel='noreferrer'
className={styles.communityButton}
>
<div className={styles.Telegram}>
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
<p>Telegram</p>
</div>
</a>
</div>
</section>
<section className={styles.FooterBody}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ describe('App Dialog Register Success', () => {
});

it('Should render buttons properly', () => {
const primaryButton = screen.getByRole('button', { name: /join our telegram community/i });
const secondaryButton = screen.getByRole('button', { name: /got it/i });

expect(primaryButton).toBeInTheDocument();
expect(secondaryButton).toBeInTheDocument();
});

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

expect(mockOnClose).toHaveBeenCalledTimes(1);
});

it('Should update current tab on primary button click to Manage Application', async () => {
const primaryButton = screen.getByRole('button', { name: /join our telegram community/i });

await userEvent.click(primaryButton);

expect(mockUpdateCurrentTab).toHaveBeenCalledTimes(1);
expect(mockUpdateCurrentTab).toHaveBeenCalledWith('MANAGE_APPS');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export const RegisterAppDialogSuccess = ({ onClose }: IRegisterAppDialogSuccessP
<Button color='secondary' onClick={onClose} className={styles.btn}>
Got it
</Button>
<Button color='primary' onClick={onSuccessfulClick} className={styles.btn}>
Join our Telegram Community
</Button>
</div>
</Modal.PageContent>
</div>
Expand Down

1 comment on commit a786f4b

@vercel
Copy link

@vercel vercel bot commented on a786f4b Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-api-docs – ./

deriv-api-docs-git-master.binary.sx
deriv-api-docs.binary.sx

Please sign in to comment.