Skip to content

Commit

Permalink
ahmed/DAPI-774/chore--update-error-handling-app-register
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-deriv committed Oct 21, 2024
1 parent 3ab30d3 commit bdfb388
Show file tree
Hide file tree
Showing 16 changed files with 102 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 bdfb388

Please sign in to comment.