forked from giranm/pd-live-react
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gavin Reynolds <[email protected]>
- Loading branch information
1 parent
54b02c7
commit 3b2097d
Showing
12 changed files
with
93 additions
and
0 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
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,67 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
useDisclosure, | ||
Alert, | ||
AlertIcon, | ||
AlertTitle, | ||
AlertDescription, | ||
Box, | ||
CloseButton, | ||
} from '@chakra-ui/react'; | ||
|
||
import { | ||
useTranslation, Trans, | ||
} from 'react-i18next'; | ||
|
||
const DeprecationAlertComponent = () => { | ||
const { | ||
isOpen: isVisible, onClose, | ||
} = useDisclosure({ defaultIsOpen: true }); | ||
const { | ||
t, | ||
} = useTranslation(); | ||
|
||
return isVisible ? ( | ||
<Alert status="info"> | ||
<AlertIcon /> | ||
<Box w="100%"> | ||
<AlertTitle>{t('PD Live is deprecated')}</AlertTitle> | ||
<AlertDescription> | ||
<Trans i18nKey="Deprecation"> | ||
This should be a | ||
<a | ||
href="https://support.pagerduty.com/main/docs/operations-console" | ||
rel="external nofollow noopener noreferrer" | ||
className="external-link" | ||
target="_blank" | ||
> | ||
Operations Console | ||
</a> | ||
{/* <a | ||
href="https://support.pagerduty.com/main/docs/operations-console" | ||
rel="external nofollow noopener noreferrer" | ||
className="external-link" | ||
target="_blank" | ||
> | ||
{t('Operations Console')} | ||
</a> | ||
{' '} | ||
is the new and improved version of PD Live, and is supported product from PagerDuty. Please plan to migrate to Operations Console instead. */} | ||
</Trans> | ||
</AlertDescription> | ||
</Box> | ||
<CloseButton | ||
alignSelf="flex-start" | ||
position="relative" | ||
right={-1} | ||
top={-1} | ||
onClick={onClose} | ||
/> | ||
</Alert> | ||
) : ( | ||
'' | ||
); | ||
}; | ||
|
||
export default DeprecationAlertComponent; |
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
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