mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
31 lines
934 B
TypeScript
31 lines
934 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import {Alert} from 'sentry/components/alert';
|
|
import {t} from 'sentry/locale';
|
|
import type {OrganizationSummary} from 'sentry/types';
|
|
|
|
type Props = {
|
|
organizations: OrganizationSummary[];
|
|
};
|
|
|
|
function UnlinkedAlert({organizations}: Props) {
|
|
return (
|
|
<StyledAlert type="warning" showIcon>
|
|
{t(
|
|
'You\'ve selected Slack as your delivery method, but do not have a linked account for the following organizations. You\'ll receive email notifications instead until you type "/sentry link" into your Slack workspace to link your account. If slash commands are not working, please re-install the Slack integration.'
|
|
)}
|
|
<ul>
|
|
{organizations.map(organization => (
|
|
<li key={organization.id}>{organization.slug}</li>
|
|
))}
|
|
</ul>
|
|
</StyledAlert>
|
|
);
|
|
}
|
|
|
|
const StyledAlert = styled(Alert)`
|
|
margin: 20px 0px;
|
|
`;
|
|
|
|
export default UnlinkedAlert;
|