mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 13:20:48 +00:00
Add new kind of system message with red text
This commit is contained in:
51
ts/components/conversation/SystemMessage.stories.tsx
Normal file
51
ts/components/conversation/SystemMessage.stories.tsx
Normal file
@@ -0,0 +1,51 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
import { SystemMessage, SystemMessageKind } from './SystemMessage';
|
||||
|
||||
export default {
|
||||
title: 'Components/Conversation/SystemMessage',
|
||||
};
|
||||
|
||||
export function PlainSystemMessage(): JSX.Element {
|
||||
return (
|
||||
<SystemMessage
|
||||
icon="audio-incoming"
|
||||
contents="Some nice text"
|
||||
kind={SystemMessageKind.Normal}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
PlainSystemMessage.story = {
|
||||
name: 'Plain',
|
||||
};
|
||||
|
||||
export function DangerSystemMessage(): JSX.Element {
|
||||
return (
|
||||
<SystemMessage
|
||||
icon="audio-missed"
|
||||
contents="Some loud danger text"
|
||||
kind={SystemMessageKind.Danger}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
DangerSystemMessage.story = {
|
||||
name: 'Danger',
|
||||
};
|
||||
|
||||
export function ErrorSystemMessage(): JSX.Element {
|
||||
return (
|
||||
<SystemMessage
|
||||
icon="unsupported"
|
||||
contents="Some error text"
|
||||
kind={SystemMessageKind.Error}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
ErrorSystemMessage.story = {
|
||||
name: 'Error',
|
||||
};
|
||||
Reference in New Issue
Block a user