From 9d27379250a73e0572eab321850125aeb85d2079 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 5 Oct 2020 17:59:13 -0400 Subject: [PATCH] chat: indigo-react unread notice --- .../apps/chat/components/lib/unread-notice.js | 48 ++++++++++++------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/pkg/interface/src/views/apps/chat/components/lib/unread-notice.js b/pkg/interface/src/views/apps/chat/components/lib/unread-notice.js index 954ed3357..d1a474c38 100644 --- a/pkg/interface/src/views/apps/chat/components/lib/unread-notice.js +++ b/pkg/interface/src/views/apps/chat/components/lib/unread-notice.js @@ -1,5 +1,6 @@ -import React, { Component } from 'react'; +import React from 'react'; import moment from 'moment'; +import { Box, Text } from '@tlon/indigo-react'; export const UnreadNotice = (props) => { const { unreadCount, unreadMsg, dismissUnread, onClick } = props; @@ -16,26 +17,41 @@ export const UnreadNotice = (props) => { } return ( -
-
-

+ + + {unreadCount} new messages since{' '} {datestamp && ( <> - ~{datestamp} at{' '} + ~{datestamp} at{' '} )} - {timestamp} -

-
+ {timestamp} + + Mark as Read -
-
-
+ + + ); }