Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit c6ed3c5

Browse files
committed
feat: add preview notice
1 parent 96514c6 commit c6ed3c5

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/Chat/Twilio/TwilioChat.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { ChannelView } from './ChannelView'
66
import { Channel } from 'twilio-chat/lib/channel'
77
import { Client } from 'twilio-chat'
88
import { ChatWidget } from '../components/ChatWidget'
9+
import { Notice } from '../components/Notice'
910
import { connectToChannel } from './api'
1011
import { isLeft } from 'fp-ts/lib/Either'
1112

@@ -59,6 +60,18 @@ export const TwilioChat = ({
5960

6061
return (
6162
<ChatWidget>
63+
<Notice>
64+
<strong>Preview!</strong> This is a development preview of the chat.
65+
Please report all issues in{' '}
66+
<a
67+
href={'https://gitlab.com/distribute-aid/toolbox/issues/95'}
68+
target={'_blank'}
69+
rel={'noopener noreferrer'}
70+
>
71+
this GitLab issue
72+
</a>
73+
.
74+
</Notice>
6275
<ChannelView
6376
key={selectedChannel}
6477
channelConnection={channelConnection}

src/Chat/components/ChatWidget.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export const ChatWidget = styled.div`
77
bottom: 1rem;
88
font-family: 'Inter', sans-serif;
99
max-width: 350px;
10+
font-size: 16px;
1011
`

src/Chat/components/Notice.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import styled from 'styled-components'
2+
3+
export const Notice = styled.div`
4+
background-color: #ffec8e;
5+
padding: 0.5rem;
6+
color: #000000cc;
7+
`

0 commit comments

Comments
 (0)