You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/Maintenance/Maintenance.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,9 @@ To provide users with basic information regarding maintenance. A basic maintenan
28
28
29
29
```
30
30
31
-
### Custom body and footer
31
+
### Custom maintenance
32
32
33
-
To override the default bodyText and footer link, specify your own using `bodyText` and `customFooter`.
33
+
To override the default bodyText and footer link, specify your own using `bodyText` and `customFooter`. You may add a `startTime`, `endTime` and `timeZone` that will be displayed as shown below. `timeZone` will be set to UTC by default.
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/Maintenance/MaintenanceCustomExample.tsx
<MaintenancebodyText='We are going to be down for maintenance starting now.'customFooter='Please visit'redirectUrl='http://patternfly.com'redirectUrlLinkText='here'utcStartTime='10am'utcEndTime='12am'startTime='6am'endTime='8am'timeZone='EST'/>
5
+
<MaintenancebodyText='We are currently undergoing scheduled maintenance and will be unavailable from'customFooter='Please visit'redirectLinkUrl='http://patternfly.com'redirectLinkText='here.'startTime='6am'endTime='8am'timeZone='EST'/>
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/component-groups/examples/Maintenance/MaintenanceExample.tsx
defaultBodyText ='We are currently undergoing scheduled maintenance. Thank you for understanding.',
36
31
startTime,
37
32
endTime,
38
-
timeZone,
39
-
defaultBodyText =`We are currently undergoing scheduled maintenance and will be unavailable from ${utcStartTime} to ${utcEndTime} UTC (${startTime}-${endTime}${timeZone}).`,
33
+
timeZone ='UTC',
40
34
bodyText,
41
-
redirectUrl='https://status.redhat.com',
42
-
redirectUrlLinkText='status.redhat.com',
35
+
redirectLinkUrl='https://status.redhat.com',
36
+
redirectLinkText='status.redhat.com.',
43
37
customFooter ='For more information please visit',
0 commit comments