-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6316 from GCTC-NTGC/feature_temp-strike-notice
[Feature] Adds Strike Notice
- Loading branch information
1 parent
c596ace
commit 14c1ab0
Showing
13 changed files
with
159 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ OCIO | |
Ojibway | ||
personalisation | ||
pgsql | ||
psac | ||
Queueable | ||
recruitmentimit | ||
recruitments | ||
|
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
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,35 @@ | ||
import React from "react"; | ||
import { useIntl } from "react-intl"; | ||
|
||
import { Alert } from "@gc-digital-talent/ui"; | ||
import { useFeatureFlags } from "@gc-digital-talent/env"; | ||
|
||
const StrikeNotice = () => { | ||
const intl = useIntl(); | ||
const { psacStrike } = useFeatureFlags(); | ||
|
||
if (!psacStrike) return null; | ||
|
||
return ( | ||
<Alert.Root type="warning"> | ||
<Alert.Title> | ||
{intl.formatMessage({ | ||
defaultMessage: | ||
"The Government of Canada and the Public Service Alliance of Canada (PSAC) are currently negotiating collective agreements.", | ||
id: "oF8h5+", | ||
description: "Heading for the PSAC strike notice.", | ||
})} | ||
</Alert.Title> | ||
<p> | ||
{intl.formatMessage({ | ||
defaultMessage: | ||
"In the event of a labour disruption, referral services from this platform will be affected. Please note that your request will be responded to when services resume. Thank you for your patience.", | ||
id: "6q29tj", | ||
description: "Content for the PSAC strike notice.", | ||
})} | ||
</p> | ||
</Alert.Root> | ||
); | ||
}; | ||
|
||
export default StrikeNotice; |
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
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