-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confirmation before deleting a member (#1074)
* feat: require confirmation before on memeber deletion * fix: typo * feat: ConfrimationModal moved to ui/modals/component - confirmation modal storybook * fix: modal member deletion text * fix: extra ! operator - remove deletemodal - using styledconfirmationbutton * fix: story structer * fix: imports
- Loading branch information
Showing
5 changed files
with
119 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
front/src/modules/ui/modal/components/__stories__/ConfirmModal.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; | ||
|
||
import { ConfirmationModal } from '../ConfirmationModal'; | ||
|
||
const meta: Meta<typeof ConfirmationModal> = { | ||
title: 'UI/Modal/ConfirmationModal', | ||
component: ConfirmationModal, | ||
decorators: [ComponentDecorator], | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof ConfirmationModal>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
isOpen: true, | ||
title: 'Pariatur labore.', | ||
subtitle: 'Velit dolore aliquip laborum occaecat fugiat.', | ||
deleteButtonText: 'Delete', | ||
}, | ||
decorators: [ComponentDecorator], | ||
}; | ||
|
||
export const InputConfirmation: Story = { | ||
args: { | ||
confirmationValue: '[email protected]', | ||
confirmationPlaceholder: '[email protected]', | ||
...Default.args, | ||
}, | ||
decorators: Default.decorators, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters