-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Soft delete of jobs and datasets. Style dialog component (#2343)
* Soft delete of jobs and datasets. Style dialog component Signed-off-by: tito12 <[email protected]> * fix unit tests Signed-off-by: tito12 <[email protected]> * fix unit tests Signed-off-by: tito12 <[email protected]> * Fix unit web tests and lint Signed-off-by: tito12 <[email protected]> * fix lint code Signed-off-by: tito12 <[email protected]> * Changes after review. Button style, i18next and else Signed-off-by: tito12 <[email protected]> * fix unit web tests Signed-off-by: tito12 <[email protected]> Signed-off-by: tito12 <[email protected]>
- Loading branch information
Showing
15 changed files
with
354 additions
and
75 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
62 changes: 37 additions & 25 deletions
62
web/src/__tests__/components/__snapshots__/Dialog.test.tsx.snap
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 |
---|---|---|
@@ -1,29 +1,41 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Dialog Component renders a snapshot that matches previous 1`] = ` | ||
<div> | ||
<WithStyles(ForwardRef(Dialog)) | ||
open={true} | ||
> | ||
<WithStyles(ForwardRef(DialogTitle)) /> | ||
<WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogContentText)) /> | ||
</WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogActions))> | ||
<WithStyles(ForwardRef(Button)) | ||
className="dialogButton" | ||
color="secondary" | ||
> | ||
Continue | ||
</WithStyles(ForwardRef(Button))> | ||
<WithStyles(ForwardRef(Button)) | ||
className="dialogButton" | ||
color="primary" | ||
onClick={[Function]} | ||
> | ||
Cancel | ||
</WithStyles(ForwardRef(Button))> | ||
</WithStyles(ForwardRef(DialogActions))> | ||
</WithStyles(ForwardRef(Dialog))> | ||
</div> | ||
<WithStyles(ForwardRef(Dialog)) | ||
open={true} | ||
> | ||
<WithStyles(ForwardRef(DialogTitle)) /> | ||
<WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogContentText))> | ||
Description of dialog... | ||
</WithStyles(ForwardRef(DialogContentText))> | ||
</WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogContentText))> | ||
Description of dialog... | ||
</WithStyles(ForwardRef(DialogContentText))> | ||
</WithStyles(ForwardRef(DialogContent))> | ||
<WithStyles(ForwardRef(DialogActions))> | ||
<WithStyles(ForwardRef(Button)) | ||
className="dialogButton" | ||
color="primary" | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#ee7b7b", | ||
"color": "#fff", | ||
} | ||
} | ||
> | ||
Cancel | ||
</WithStyles(ForwardRef(Button))> | ||
<WithStyles(ForwardRef(Button)) | ||
className="dialogButton" | ||
color="primary" | ||
variant="outlined" | ||
> | ||
Continue | ||
</WithStyles(ForwardRef(Button))> | ||
</WithStyles(ForwardRef(DialogActions))> | ||
</WithStyles(ForwardRef(Dialog))> | ||
`; |
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
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
Oops, something went wrong.