8
8
IconButton ,
9
9
Typography ,
10
10
CircularProgress ,
11
+ Alert ,
11
12
} from "@mui/material" ;
12
13
import { PropertyList } from "/src/components/property-list" ;
13
14
import { PropertyListItem } from "/src/components/property-list-item" ;
@@ -59,6 +60,11 @@ export const CippExchangeInfoCard = (props) => {
59
60
</ Stack >
60
61
}
61
62
/>
63
+ { exchangeData ?. BlockedForSpam ? (
64
+ < Alert severity = "warning" sx = { { mx : 2 , mt : 2 , mb : 2 } } >
65
+ This mailbox is currently blocked for spam.
66
+ </ Alert >
67
+ ) : null }
62
68
< Divider />
63
69
< PropertyList >
64
70
< PropertyListItem
@@ -81,7 +87,10 @@ export const CippExchangeInfoCard = (props) => {
81
87
Hidden from GAL:
82
88
</ Typography >
83
89
< Typography variant = "inherit" >
84
- { getCippFormatting ( exchangeData ?. HiddenFromAddressLists , "HiddenFromAddressLists" ) }
90
+ { getCippFormatting (
91
+ exchangeData ?. HiddenFromAddressLists ,
92
+ "HiddenFromAddressLists"
93
+ ) }
85
94
</ Typography >
86
95
</ Grid >
87
96
< Grid size = { { xs : 12 , md : 4 } } >
@@ -127,14 +136,15 @@ export const CippExchangeInfoCard = (props) => {
127
136
value = {
128
137
isLoading ? (
129
138
< Skeleton variant = "text" width = { 200 } />
130
- ) : ( ( ) => {
139
+ ) : (
140
+ ( ( ) => {
131
141
const forwardingAddress = exchangeData ?. ForwardingAddress ;
132
142
const forwardAndDeliver = exchangeData ?. ForwardAndDeliver ;
133
-
143
+
134
144
// Determine forwarding type and clean address
135
145
let forwardingType = "None" ;
136
146
let cleanAddress = "" ;
137
-
147
+
138
148
if ( forwardingAddress ) {
139
149
if ( forwardingAddress . startsWith ( "smtp:" ) ) {
140
150
forwardingType = "External" ;
@@ -144,18 +154,17 @@ export const CippExchangeInfoCard = (props) => {
144
154
cleanAddress = forwardingAddress ;
145
155
}
146
156
}
147
-
157
+
148
158
return (
149
159
< Grid container spacing = { 2 } >
150
160
< Grid size = { { xs : 12 , md : 6 } } >
151
161
< Typography variant = "inherit" color = "text.primary" gutterBottom >
152
162
Forwarding Status:
153
163
</ Typography >
154
164
< Typography variant = "inherit" >
155
- { forwardingType === "None"
165
+ { forwardingType === "None"
156
166
? getCippFormatting ( false , "ForwardingStatus" )
157
- : `${ forwardingType } Forwarding`
158
- }
167
+ : `${ forwardingType } Forwarding` }
159
168
</ Typography >
160
169
</ Grid >
161
170
{ forwardingType !== "None" && (
@@ -172,18 +181,17 @@ export const CippExchangeInfoCard = (props) => {
172
181
< Typography variant = "inherit" color = "text.primary" gutterBottom >
173
182
Forwarding Address:
174
183
</ Typography >
175
- < Typography variant = "inherit" >
176
- { cleanAddress }
177
- </ Typography >
184
+ < Typography variant = "inherit" > { cleanAddress } </ Typography >
178
185
</ Grid >
179
186
</ >
180
187
) }
181
188
</ Grid >
182
189
) ;
183
190
} ) ( )
191
+ )
184
192
}
185
193
/>
186
-
194
+
187
195
{ /* Archive section - always show status */ }
188
196
< PropertyListItem
189
197
divider
@@ -207,7 +215,10 @@ export const CippExchangeInfoCard = (props) => {
207
215
Auto Expanding Archive:
208
216
</ Typography >
209
217
< Typography variant = "inherit" >
210
- { getCippFormatting ( exchangeData ?. AutoExpandingArchive , "AutoExpandingArchive" ) }
218
+ { getCippFormatting (
219
+ exchangeData ?. AutoExpandingArchive ,
220
+ "AutoExpandingArchive"
221
+ ) }
211
222
</ Typography >
212
223
</ Grid >
213
224
< Grid size = { { xs : 12 , md : 6 } } >
0 commit comments