Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ahmed/dapi 774/chore update error handling app register #159

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading