aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/NotificationPrompts.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-07 19:48:09 -0400
committerGitHub <noreply@github.com>2021-05-07 19:48:09 -0400
commiteb1a01196ae6a999ac73e146cf5286fddc0454e3 (patch)
tree67986d4d54bbbd6a6d7a1e9abe305dd424af0efd /src/components/notifications/NotificationPrompts.tsx
parentae61e1602149a881483631239ea2507a58378cc4 (diff)
parenta3bae91f19400373dc396fc60d5f29d3b4506d23 (diff)
Merge pull request #407 from brian-tagg/newFeatureMessaging
[TMA-837] New feature messaging
Diffstat (limited to 'src/components/notifications/NotificationPrompts.tsx')
-rw-r--r--src/components/notifications/NotificationPrompts.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/notifications/NotificationPrompts.tsx b/src/components/notifications/NotificationPrompts.tsx
index 386b45e6..06f6ecc6 100644
--- a/src/components/notifications/NotificationPrompts.tsx
+++ b/src/components/notifications/NotificationPrompts.tsx
@@ -1,5 +1,6 @@
import React, {Fragment} from 'react';
import {Image, StyleSheet, Text} from 'react-native';
+import {normalize, SCREEN_WIDTH} from '../../utils';
import {TaggPrompt} from '../common';
export const InviteFriendsPrompt: React.FC = () => {
@@ -32,6 +33,28 @@ export const PrivateAccountsPrompt: React.FC = () => {
);
};
+export const NewChatPrompt: React.FC = () => {
+ const handWaveRegex = '\u{1F44B}';
+ const message = `Introducing messaging, another way to engage with\nfriends on campus! Send a ${handWaveRegex} to a friend now!`;
+ return (
+ <TaggPrompt
+ messageHeader={'Chat!'}
+ messageBody={message}
+ logoType={'chat'}
+ logoLink={'ChatList'}
+ externalStyles={{
+ icon: {
+ width: SCREEN_WIDTH * 0.9,
+ height: normalize(70),
+ },
+ }}
+ hideCloseButton={true}
+ noPadding={true}
+ onClose={() => {}}
+ />
+ );
+};
+
interface SPPromptNotificationProps {
showSPNotifyPopUp: boolean;
}