Просмотр исходного кода

create the look and feel of a notification when a page is liked

Shun Miyazawa 4 лет назад
Родитель
Сommit
02ef137c73
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

+ 4 - 0
packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

@@ -79,6 +79,10 @@ const InAppNotificationElm = (props: Props): JSX.Element | null => {
   let actionIcon: string;
   let actionIcon: string;
 
 
   switch (actionType) {
   switch (actionType) {
+    case 'PAGE_LIKE':
+      actionMsg = 'likes on';
+      actionIcon = 'icon-like';
+      break;
     case 'PAGE_UPDATE':
     case 'PAGE_UPDATE':
       actionMsg = 'updated on';
       actionMsg = 'updated on';
       actionIcon = 'ti-agenda';
       actionIcon = 'ti-agenda';