File tree 4 files changed +9
-18
lines changed
apps/content-editor/src/app/views/ItemList 4 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { DeleteRounded } from "@mui/icons-material";
14
14
import { useRef } from "react" ;
15
15
import { ContentItem } from "../../../../../../shell/services/types" ;
16
16
import { DialogContentItem } from "./DialogContentItem" ;
17
+ import pluralizeWord from "../../../../../../utility/pluralizeWord" ;
17
18
18
19
type ConfirmDeletesModalProps = {
19
20
items : ContentItem [ ] ;
@@ -49,9 +50,10 @@ export const ConfirmDeletesDialog = ({
49
50
</ Stack >
50
51
< Box > Delete { items . length } Items:</ Box >
51
52
< Typography variant = "body2" color = "text.secondary" mt = { 1 } >
52
- Deleting these { items . length } items will remove it from all locations
53
- throughout your site and make it unavailable to API requests. This
54
- cannot be undone.
53
+ Deleting { items . length > 1 ? "these" : "this" } { items . length } { " " }
54
+ { pluralizeWord ( "item" , items . length ) } will remove it from all
55
+ locations throughout your site and make it unavailable to API
56
+ requests. This cannot be undone.
55
57
</ Typography >
56
58
</ DialogTitle >
57
59
< DialogContent >
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export const ConfirmPublishesModal = ({
57
57
< Typography variant = "body2" color = "text.secondary" mt = { 1 } >
58
58
This will make the the following { items . length } content{ " " }
59
59
{ pluralizeWord ( "item" , items . length ) } immediately available on all of
60
- your platforms. You can always unpublish this item later if needed.
60
+ your platforms. You can always unpublish{ " " }
61
+ { items . length > 1 ? "these" : "this" } { " " }
62
+ { pluralizeWord ( "item" , items . length ) } later if needed.
61
63
</ Typography >
62
64
</ DialogTitle >
63
65
< DialogContent >
Original file line number Diff line number Diff line change @@ -92,12 +92,9 @@ export default connect((state) => {
92
92
display = "flex"
93
93
alignItems = "center"
94
94
justifyContent = "center"
95
- sx = { {
96
- backgroundColor : "grey.900" ,
97
- } }
98
95
>
99
96
< Paper
100
- elevation = { 0 }
97
+ elevation = { 8 }
101
98
sx = { {
102
99
boxSizing : "border-box" ,
103
100
width : "400px" ,
@@ -300,15 +297,6 @@ export default connect((state) => {
300
297
</ Box >
301
298
) }
302
299
</ Paper >
303
- < Box
304
- component = "img"
305
- src = { zestyLogo }
306
- position = "fixed"
307
- top = "32px"
308
- left = "32px"
309
- alt = "Zesty.io Logo"
310
- loading = "lazy"
311
- />
312
300
</ Box >
313
301
) ;
314
302
} )
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ export default connect((state) => {
74
74
< Backdrop
75
75
sx = { {
76
76
zIndex : ( theme ) => theme . zIndex . tooltip + 10 , // Needs to be on top of everything
77
- bgcolor : "background.paper" ,
78
77
} }
79
78
open = { ! props . auth . checking && ! props . auth . valid }
80
79
>
You can’t perform that action at this time.
0 commit comments