Skip to content

Commit

Permalink
Merge pull request #159 from ahmed-deriv/ahmed/DAPI-774/chore--update…
Browse files Browse the repository at this point in the history
…-error-handling-app-register

Ahmed/dapi 774/chore  update error handling app register
  • Loading branch information
sandeep-deriv authored Oct 22, 2024
2 parents 73ac42f + cf76ec7 commit 462f99e
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 790 deletions.
69 changes: 0 additions & 69 deletions src/features/dashboard/components/Tabs/__tests__/tabs.test.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/features/dashboard/components/Tabs/index.ts

This file was deleted.

61 changes: 0 additions & 61 deletions src/features/dashboard/components/Tabs/tabs.module.scss

This file was deleted.

94 changes: 0 additions & 94 deletions src/features/dashboard/components/Tabs/tabs.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ describe('AppRegisterSuccessModal', () => {
const configure_btn = await screen.findByText(/configure now/i);
await userEvent.click(configure_btn);
expect(mock_configure).toHaveBeenCalledTimes(1);
expect(mock_cancel).toHaveBeenCalledTimes(1);

const maybe_later_btn = await screen.findByText(/maybe later/i);
await userEvent.click(maybe_later_btn);
expect(mock_cancel).toHaveBeenCalledTimes(2);
expect(mock_cancel).toHaveBeenCalledTimes(1);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ const AppRegisterSuccessModal = ({
<Modal
isOpened={app_register_modal_open}
primaryButtonLabel={translate({ message: 'Configure now' })}
primaryButtonCallback={() => {
onConfigure();
onCancel();
}}
primaryButtonCallback={() => onConfigure()}
secondaryButtonLabel={translate({ message: 'Maybe later' })}
secondaryButtonCallback={onCancel}
secondaryButtonCallback={() => onCancel()}
isMobile={deviceType !== 'desktop'}
showHandleBar
showSecondaryButton
Expand Down
Loading

0 comments on commit 462f99e

Please sign in to comment.